[Python-checkins] python/nondist/sandbox/csv/test test_csv.py,1.33,1.34
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Fri, 14 Feb 2003 16:52:13 -0800
Update of /cvsroot/python/python/nondist/sandbox/csv/test
In directory sc8-pr-cvs1:/tmp/cvs-serv30473
Modified Files:
test_csv.py
Log Message:
test for strings w/ NUL bytes
Index: test_csv.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/csv/test/test_csv.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** test_csv.py 13 Feb 2003 17:21:15 -0000 1.33
--- test_csv.py 15 Feb 2003 00:52:11 -0000 1.34
***************
*** 129,132 ****
--- 129,135 ----
self.assertRaises(csv.Error, self._read_test,
['"ab"c'], None, strict = 1)
+ # cannot handle null bytes for the moment
+ self.assertRaises(csv.Error, self._read_test,
+ ['ab\0c'], None, strict = 1)
self._read_test(['"ab"c'], [['abc']], doublequote = 0)