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

Method test_unsupported

Lib/test/test_copy.py:940–948  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

938class TestReplace(unittest.TestCase):
939
940 def test_unsupported(self):
941 self.assertRaises(TypeError, copy.replace, 1)
942 self.assertRaises(TypeError, copy.replace, [])
943 self.assertRaises(TypeError, copy.replace, {})
944 def f(): pass
945 self.assertRaises(TypeError, copy.replace, f)
946 class A: pass
947 self.assertRaises(TypeError, copy.replace, A)
948 self.assertRaises(TypeError, copy.replace, A())
949
950 def test_replace_method(self):
951 class A:

Callers

nothing calls this directly

Calls 2

AClass · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected