mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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:
parent
8c94b42f31
commit
7130ff5eb9
2 changed files with 7 additions and 44 deletions
|
@ -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 = '"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue