MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_too_many_fields

Function test_too_many_fields

tests/test_parse.py:742–747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

740
741@pytest.mark.skipif(sys.version_info >= (3, 5), reason="Python 3.5 removed the limit of 100 named groups in a regular expression")
742def test_too_many_fields():
743 # Python 3.5 removed the limit of 100 named groups in a regular expression,
744 # so only test for the exception if the limit exists.
745 p = parse.compile("{:ti}" * 15)
746 with pytest.raises(parse.TooManyFields):
747 p.parse("")
748
749
750def test_letters():

Callers

nothing calls this directly

Calls 2

compileMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected