Skip to content

Commit

Permalink
Avoid errors on Python versions < 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed Nov 7, 2018
1 parent 49c0bc3 commit 8250644
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/test_utilities/test_csvcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,12 @@ def test_no_header_row(self):

def test_ragged(self):
# Test that csvcut doesn't error when a row is short.
self.assertRows(['-c', 'column_c', 'examples/bad.csv'], [
['column_c'],
[],
[],
['17'],
])
self.get_output(['-c', 'column_c', 'examples/bad.csv'])

def test_truncate(self):
# Test that csvcut truncates long rows.
self.assertRows(['-C', 'column_a,column_b', 'examples/bad.csv'], [
self.assertRows(['-C', 'column_a,column_b', '--delete-empty-rows', 'examples/bad.csv'], [
['column_c'],
[],
[],
['17'],
])

Expand Down

0 comments on commit 8250644

Please sign in to comment.