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

Method test_comparing_empty_lists

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

Source from the content-addressed store, hash-verified

80 self.assertEqual(s.real_quick_ratio(), 1)
81
82 def test_comparing_empty_lists(self):
83 # Check fix for bug #979794
84 group_gen = difflib.SequenceMatcher(None, [], []).get_grouped_opcodes()
85 self.assertRaises(StopIteration, next, group_gen)
86 diff_gen = difflib.unified_diff([], [])
87 self.assertRaises(StopIteration, next, diff_gen)
88
89 def test_matching_blocks_cache(self):
90 # Issue #21635

Callers

nothing calls this directly

Calls 2

get_grouped_opcodesMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected