mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
**kwds arg was missing from __init__ for Dict{Reader,Writer} classes.
will backport.
This commit is contained in:
parent
60e868abd2
commit
3f7a94824e
3 changed files with 14 additions and 4 deletions
|
@ -447,6 +447,13 @@ class TestDictFields(unittest.TestCase):
|
|||
self.assertEqual(reader.next(), {"1": '1', "2": '2', "3": 'abc',
|
||||
"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):
|
||||
import array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue