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

Method check_set_op_does_not_crash

Lib/test/test_set.py:1964–1971  ·  view source on GitHub ↗
(self, function)

Source from the content-addressed store, hash-verified

1962 return set1, set2
1963
1964 def check_set_op_does_not_crash(self, function):
1965 for _ in range(100):
1966 set1, set2 = self.make_sets_of_bad_objects()
1967 try:
1968 function(set1, set2)
1969 except RuntimeError as e:
1970 # Just make sure we don't crash here.
1971 self.assertIn("changed size during iteration", str(e))
1972
1973
1974class TestBinaryOpsMutating(TestOperationsMutating):

Callers 15

test_eq_with_mutationMethod · 0.80
test_ne_with_mutationMethod · 0.80
test_lt_with_mutationMethod · 0.80
test_le_with_mutationMethod · 0.80
test_gt_with_mutationMethod · 0.80
test_ge_with_mutationMethod · 0.80
test_or_with_mutationMethod · 0.80

Calls 4

strFunction · 0.85
assertInMethod · 0.80
functionFunction · 0.50

Tested by

no test coverage detected