Skip to content

Commit

Permalink
fix bug in test case for passing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Juarez Rudsatz committed Jun 23, 2020
1 parent 36b7d67 commit f7f66d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions petl/test/io/test_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ def _write_read_with_codec(file_ext):
compressed_avr = _get_temp_file_for('.avro' + file_ext)

tocsv(_table, compressed_csv, encoding='ascii', lineterminator='\n')
if PY3:
if has_avro:
toavro(_table, compressed_avr)

csv_actual = fromcsv(compressed_csv, encoding='ascii')
if PY3:
if has_avro:
avr_actual = fromavro(compressed_avr)

_show__rows_from("Actual:", csv_actual)

ieq(_table, csv_actual)
ieq(_table, csv_actual) # verify can iterate twice
if PY3:
if has_avro:
ieq(_table, avr_actual)
ieq(_table, avr_actual) # verify can iterate twice

Expand Down

0 comments on commit f7f66d9

Please sign in to comment.