Skip to content

Commit

Permalink
Fix bug involving the discrepancy between csv writing in python 2 and 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Saleh Hindi committed Jun 3, 2017
1 parent 93c5a6f commit 34b0268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def test_import_csv(self):
if sys.version_info[0] == 2:
test_file = open('tests/testCSV.csv', 'w+b')
elif sys.version_info[0] == 3:
test_file = open('tests/testCSV.csv', 'r+')
test_file = open('tests/testCSV.csv', 'w+')

csv_writer = csv.writer(test_file)
csv_writer.writerow(['Column 1','Column 2'])
Expand Down

0 comments on commit 34b0268

Please sign in to comment.