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

Method test_zero_mode_tie_order_comma_first

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

Source from the content-addressed store, hash-verified

1507 self.assertEqual(dialect.delimiter, ",")
1508
1509 def test_zero_mode_tie_order_comma_first(self):
1510 sniffer = csv.Sniffer()
1511 pattern = (
1512 "a,b\n"
1513 "c:d\n"
1514 "e,f\n"
1515 "g:h\n"
1516 )
1517 sample = pattern * 10
1518 with self.assertRaisesRegex(csv.Error, "Could not determine delimiter"):
1519 sniffer.sniff(sample)
1520
1521 def test_zero_mode_tie_order_colon_first(self):
1522 sniffer = csv.Sniffer()

Callers

nothing calls this directly

Calls 2

sniffMethod · 0.95
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected