From 5dfabd84caf4690ca905a74d7cc9045abb34be9a Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Fri, 20 Oct 2023 17:24:36 -0400 Subject: [PATCH 1/2] add newline to allow ascii test to work on windows --- neo/test/iotest/test_asciisignalio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/test/iotest/test_asciisignalio.py b/neo/test/iotest/test_asciisignalio.py index 4e6a03754..d829cc388 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: From 6ed32d267930d4f1220ea7db6f561e6fe2981cef Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Fri, 20 Oct 2023 17:27:39 -0400 Subject: [PATCH 2/2] pep8 fixes --- neo/test/iotest/test_asciisignalio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/test/iotest/test_asciisignalio.py b/neo/test/iotest/test_asciisignalio.py index d829cc388..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', newline='') as csvfile: + with open(filename, 'w', newline='') as csvfile: writer = csv.writer(csvfile, delimiter=',', quotechar='|', quoting=csv.QUOTE_MINIMAL) for row in sample_data: