()
| 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") |
| 742 | def 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 | |
| 750 | def test_letters(): |