[Python-checkins] python/dist/src/Lib/test test_csv.py,1.9,1.10
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Sat Sep 6 13:52:15 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv9566/Lib/test
Modified Files:
test_csv.py
Log Message:
**kwds arg was missing from __init__ for Dict{Reader,Writer} classes.
will backport.
Index: test_csv.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_csv.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_csv.py 12 Jun 2003 02:40:22 -0000 1.9
--- test_csv.py 6 Sep 2003 19:52:12 -0000 1.10
***************
*** 448,451 ****
--- 448,458 ----
"4": '4', "5": '5', "6": '6'})
+ def test_read_semi_sep(self):
+ reader = csv.DictReader(["1;2;abc;4;5;6\r\n"],
+ fieldnames="1 2 3 4 5 6".split(),
+ delimiter=';')
+ self.assertEqual(reader.next(), {"1": '1', "2": '2', "3": 'abc',
+ "4": '4', "5": '5', "6": '6'})
+
class TestArrayWrites(unittest.TestCase):
def test_int_write(self):
More information about the Python-checkins
mailing list