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

Function test_decimal_error

tests/test_parser.py:955–959  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

953
954@pytest.mark.parametrize('value', ['1: test', 'Nan'])
955def test_decimal_error(value):
956 # GH 632, GH 662 - decimal.Decimal raises some non-ParserError exception
957 # when constructed with an invalid value
958 with pytest.raises(ParserError):
959 parse(value)
960
961def test_parsererror_repr():
962 # GH 991 — the __repr__ was not properly indented and so was never defined.

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected