From 34b026889262825b0b865907ae48a3419f802012 Mon Sep 17 00:00:00 2001 From: Saleh Hindi Date: Sat, 3 Jun 2017 17:37:11 -0400 Subject: [PATCH] Fix bug involving the discrepancy between csv writing in python 2 and 3. --- tests/core_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core_tests.py b/tests/core_tests.py index 68fc03552dd7..6570b3eb74f5 100644 --- a/tests/core_tests.py +++ b/tests/core_tests.py @@ -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'])