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

Method test_not_shareable

Lib/test/test_crossinterp.py:534–546  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

532 self.assert_not_shareable([obj])
533
534 def test_not_shareable(self):
535 with ignore_byteswarning():
536 for obj in NOT_SHAREABLE:
537 if type(obj) is types.MappingProxyType:
538 self.assert_not_shareable([obj])
539 elif obj in PICKLEABLE:
540 with self.subTest(repr(obj)):
541 # We don't worry about checking the actual value.
542 # The other tests should cover that well enough.
543 got = self.get_roundtrip(obj)
544 self.assertIs(type(got), type(obj))
545 else:
546 self.assert_not_shareable([obj])
547
548 def test_list(self):
549 self.assert_roundtrip_equal_not_identical([

Callers

nothing calls this directly

Calls 5

ignore_byteswarningFunction · 0.85
assert_not_shareableMethod · 0.80
get_roundtripMethod · 0.80
subTestMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected