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

Method assert_class_defs_not_shareable

Lib/test/test_crossinterp.py:638–644  ·  view source on GitHub ↗
(self, defs)

Source from the content-addressed store, hash-verified

636 self.assertNotEqual(got, inst)
637
638 def assert_class_defs_not_shareable(self, defs):
639 self.assert_not_shareable(defs.TOP_CLASSES)
640
641 instances = []
642 for cls, args in defs.TOP_CLASSES.items():
643 instances.append(cls(*args))
644 self.assert_not_shareable(instances)
645
646 def test_user_class_normal(self):
647 self.assert_class_defs_same(defs)

Calls 4

assert_not_shareableMethod · 0.80
clsClass · 0.50
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected