MCPcopy Create free account
hub / github.com/dateutil/dateutil / test_parsererror_repr

Function test_parsererror_repr

tests/test_parser.py:957–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

955 parse(value)
956
957def test_parsererror_repr():
958 # GH 991 — the __repr__ was not properly indented and so was never defined.
959 # This tests the current behavior of the ParserError __repr__, but the
960 # precise format is not guaranteed to be stable and may change even in
961 # minor versions. This test exists to avoid regressions.
962 s = repr(ParserError("Problem with string: %s", "2019-01-01"))
963
964 assert s == "ParserError('Problem with string: %s', '2019-01-01')"

Callers

nothing calls this directly

Calls 1

ParserErrorClass · 0.90

Tested by

no test coverage detected