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

Method test_invalid_input

Lib/test/test_difflib.py:636–640  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

634 # Happy paths are tested in the doctests of `difflib.restore`.
635
636 def test_invalid_input(self):
637 with self.assertRaises(ValueError):
638 ''.join(difflib.restore([], 0))
639 with self.assertRaises(ValueError):
640 ''.join(difflib.restore([], 3))
641
642
643def setUpModule():

Callers

nothing calls this directly

Calls 3

assertRaisesMethod · 0.45
joinMethod · 0.45
restoreMethod · 0.45

Tested by

no test coverage detected