[Python-checkins] python/nondist/sandbox/csv/test test_csv.py,1.28,1.29
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Tue, 11 Feb 2003 06:14:05 -0800
Update of /cvsroot/python/python/nondist/sandbox/csv/test
In directory sc8-pr-cvs1:/tmp/cvs-serv23046
Modified Files:
test_csv.py
Log Message:
forgot to make rest->restkey change in test case
Index: test_csv.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/csv/test/test_csv.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** test_csv.py 10 Feb 2003 15:15:15 -0000 1.28
--- test_csv.py 11 Feb 2003 14:14:02 -0000 1.29
***************
*** 393,397 ****
def test_read_long_with_rest(self):
reader = csv.DictReader(StringIO("1,2,abc,4,5,6\r\n"),
! fieldnames=["f1", "f2"], rest="_rest")
self.assertEqual(reader.next(), {"f1": '1', "f2": '2',
"_rest": ["abc", "4", "5", "6"]})
--- 393,397 ----
def test_read_long_with_rest(self):
reader = csv.DictReader(StringIO("1,2,abc,4,5,6\r\n"),
! fieldnames=["f1", "f2"], restkey="_rest")
self.assertEqual(reader.next(), {"f1": '1', "f2": '2',
"_rest": ["abc", "4", "5", "6"]})