mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
parent
0efea322a9
commit
0f41acb0ea
2 changed files with 5 additions and 5 deletions
|
@ -783,7 +783,7 @@ class TestDialectValidity(unittest.TestCase):
|
|||
with self.assertRaises(csv.Error) as cm:
|
||||
mydialect()
|
||||
self.assertEqual(str(cm.exception),
|
||||
'"quotechar" must be an 1-character string')
|
||||
'"quotechar" must be a 1-character string')
|
||||
|
||||
mydialect.quotechar = 4
|
||||
with self.assertRaises(csv.Error) as cm:
|
||||
|
@ -806,13 +806,13 @@ class TestDialectValidity(unittest.TestCase):
|
|||
with self.assertRaises(csv.Error) as cm:
|
||||
mydialect()
|
||||
self.assertEqual(str(cm.exception),
|
||||
'"delimiter" must be an 1-character string')
|
||||
'"delimiter" must be a 1-character string')
|
||||
|
||||
mydialect.delimiter = ""
|
||||
with self.assertRaises(csv.Error) as cm:
|
||||
mydialect()
|
||||
self.assertEqual(str(cm.exception),
|
||||
'"delimiter" must be an 1-character string')
|
||||
'"delimiter" must be a 1-character string')
|
||||
|
||||
mydialect.delimiter = b","
|
||||
with self.assertRaises(csv.Error) as cm:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue