summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_csv.py
diff options
context:
space:
mode:
authorAndrew McNamara <andrewm@object-craft.com.au>2005-01-10 01:04:40 (GMT)
committerAndrew McNamara <andrewm@object-craft.com.au>2005-01-10 01:04:40 (GMT)
commit36a7691c2dc4a11ceebacb149e69b01226962d69 (patch)
tree47971ea2094d4947e5a11613ebcd9db9da87f95e /Lib/test/test_csv.py
parent41e4faa82bdf4fb601a97565bf30ee683c4bfd50 (diff)
downloadcpython-36a7691c2dc4a11ceebacb149e69b01226962d69.zip
cpython-36a7691c2dc4a11ceebacb149e69b01226962d69.tar.gz
cpython-36a7691c2dc4a11ceebacb149e69b01226962d69.tar.bz2
Fix parsing of csv files with escapes (escape character previously would be
left in stream).
Diffstat (limited to 'Lib/test/test_csv.py')
-rw-r--r--Lib/test/test_csv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py
index 6c47c6e..66b0ea9 100644
--- a/Lib/test/test_csv.py
+++ b/Lib/test/test_csv.py
@@ -227,10 +227,10 @@ class Test_Csv(unittest.TestCase):
self.assertRaises(csv.Error, self._read_test, ['a,b\r\nc,d'], [])
def test_read_escape(self):
- self._read_test(['a,\\b,c'], [['a', '\\b', 'c']], escapechar='\\')
+ self._read_test(['a,\\b,c'], [['a', 'b', 'c']], escapechar='\\')
self._read_test(['a,b\\,c'], [['a', 'b,c']], escapechar='\\')
self._read_test(['a,"b\\,c"'], [['a', 'b,c']], escapechar='\\')
- self._read_test(['a,"b,\\c"'], [['a', 'b,\\c']], escapechar='\\')
+ self._read_test(['a,"b,\\c"'], [['a', 'b,c']], escapechar='\\')
self._read_test(['a,"b,c\\""'], [['a', 'b,c"']], escapechar='\\')
self._read_test(['a,"b,c"\\'], [['a', 'b,c\\']], escapechar='\\')