We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cecb897 commit ab871e0Copy full SHA for ab871e0
1 file changed
Lib/test/test_csv.py
@@ -1471,7 +1471,7 @@ def test_zero_mode_tie_order_comma_first(self):
1471
"g:h\n"
1472
)
1473
sample = pattern * 10
1474
- with self.assertRaises(csv.Error):
+ with self.assertRaisesRegex(csv.Error, "Could not determine delimiter"):
1475
sniffer.sniff(sample)
1476
1477
def test_zero_mode_tie_order_colon_first(self):
@@ -1483,7 +1483,7 @@ def test_zero_mode_tie_order_colon_first(self):
1483
"g,h\n"
1484
1485
1486
1487
1488
1489
class NUL:
0 commit comments