Replace python-coded validation of csv dialect with a call to the C

dialect type (which has a better idea of what is and isn't valid).
This commit is contained in:
Andrew McNamara 2005-01-11 02:22:47 +00:00
parent 8c94b42f31
commit 7130ff5eb9
2 changed files with 7 additions and 44 deletions

View file

@ -727,10 +727,6 @@ class TestDialectValidity(unittest.TestCase):
mydialect.quoting = None
self.assertRaises(csv.Error, mydialect)
mydialect.quoting = csv.QUOTE_NONE
mydialect.escapechar = None
self.assertRaises(csv.Error, mydialect)
mydialect.doublequote = True
mydialect.quoting = csv.QUOTE_ALL
mydialect.quotechar = '"'