mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.
This commit is contained in:
parent
c89f284df8
commit
5d45a8dc22
2 changed files with 3 additions and 1 deletions
|
@ -32,6 +32,8 @@ class Test_Csv(unittest.TestCase):
|
|||
self.assertRaises(TypeError, ctor, arg, quoting=None)
|
||||
self.assertRaises(TypeError, ctor, arg,
|
||||
quoting=csv.QUOTE_ALL, quotechar='')
|
||||
self.assertRaises(TypeError, ctor, arg,
|
||||
quoting=csv.QUOTE_ALL, quotechar=None)
|
||||
|
||||
def test_reader_arg_valid(self):
|
||||
self._test_arg_valid(csv.reader, [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue