Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.

This commit is contained in:
Andrew McNamara 2005-01-12 08:16:17 +00:00
parent c89f284df8
commit 5d45a8dc22
2 changed files with 3 additions and 1 deletions

View file

@ -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, [])