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

Method check_invalid

Lib/test/test_fractions.py:425–427  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

423 F, "3/0")
424
425 def check_invalid(s):
426 msg = "Invalid literal for Fraction: " + repr(s)
427 self.assertRaisesMessage(ValueError, msg, F, s)
428
429 check_invalid("3/")
430 check_invalid("/2")

Callers

nothing calls this directly

Calls 1

assertRaisesMessageMethod · 0.95

Tested by

no test coverage detected