MCPcopy Index your code
hub / github.com/python/cpython / test_zero_mode_tie_order_colon_first

Method test_zero_mode_tie_order_colon_first

Lib/test/test_csv.py:1521–1531  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1519 sniffer.sniff(sample)
1520
1521 def test_zero_mode_tie_order_colon_first(self):
1522 sniffer = csv.Sniffer()
1523 pattern = (
1524 "a:b\n"
1525 "c,d\n"
1526 "e:f\n"
1527 "g,h\n"
1528 )
1529 sample = pattern * 10
1530 with self.assertRaisesRegex(csv.Error, "Could not determine delimiter"):
1531 sniffer.sniff(sample)
1532
1533
1534class NUL:

Callers

nothing calls this directly

Calls 2

sniffMethod · 0.95
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected