diff --git a/tests/core_tests.py b/tests/core_tests.py index 68fc03552dd78..6570b3eb74f5b 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'])