From 735c5e1078cc27b5cba03b8ebbae15aeca6b8fbd Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 26 Oct 2021 12:26:23 -0700 Subject: [PATCH] update comments for ParseError test: https://bugs.python.org/issue45617 --- tests/test_csv_s.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_csv_s.py b/tests/test_csv_s.py index 9b207231..4de2aec6 100644 --- a/tests/test_csv_s.py +++ b/tests/test_csv_s.py @@ -79,9 +79,10 @@ class MyTests(unittest.TestCase): def test_csv_unparsable(self): """ Test CSV streaming parser with '\r' newlines. This will raise ParseError due to a Python bug - that does not correctly iterate on that line ending with sys.stdin. + that does not correctly iterate on that line ending with sys.stdin. This is not a great test. + https://bugs.python.org/issue45617 """ - data = r'unparsable\rdata' + data = r'unparsable\rdata' # raw mode simulates unrecognized line separator - not great g = jc.parsers.csv_s.parse(data.splitlines(), quiet=True) with self.assertRaises(ParseError): list(g)