diff --git a/neo/test/iotest/test_asciisignalio.py b/neo/test/iotest/test_asciisignalio.py index 4e6a03754..20e587112 100644 --- a/neo/test/iotest/test_asciisignalio.py +++ b/neo/test/iotest/test_asciisignalio.py @@ -55,7 +55,7 @@ def test_csv_expect_success(self): (-64.6, -64.2, -77.0, 0.7), (-64.3, -64.0, -99.9, 0.8) ] - with open(filename, 'w') as csvfile: + with open(filename, 'w', newline='') as csvfile: writer = csv.writer(csvfile, delimiter=',', quotechar='|', quoting=csv.QUOTE_MINIMAL) for row in sample_data: