MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_8420_set_merge

Method test_8420_set_merge

Lib/test/test_set.py:1868–1881  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1866
1867class TestWeirdBugs(unittest.TestCase):
1868 def test_8420_set_merge(self):
1869 # This used to segfault
1870 global be_bad, set2, dict2
1871 be_bad = False
1872 set1 = {bad_eq()}
1873 set2 = {bad_eq() for i in range(75)}
1874 be_bad = True
1875 self.assertRaises(ZeroDivisionError, set1.update, set2)
1876
1877 be_bad = False
1878 set1 = {bad_dict_clear()}
1879 dict2 = {bad_dict_clear(): None}
1880 be_bad = True
1881 set1.symmetric_difference_update(dict2)
1882
1883 def test_iter_and_mutate(self):
1884 # Issue #24581

Callers

nothing calls this directly

Calls 4

bad_eqClass · 0.85
bad_dict_clearClass · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected