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

Method test_copy

Lib/test/test_codecs.py:1990–1995  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1988 self.writer = codecs.getwriter('utf-8')
1989
1990 def test_copy(self):
1991 f = self.writer(Queue(b''))
1992 with self.assertRaisesRegex(TypeError, 'StreamWriter'):
1993 copy.copy(f)
1994 with self.assertRaisesRegex(TypeError, 'StreamWriter'):
1995 copy.deepcopy(f)
1996
1997 def test_pickle(self):
1998 for proto in range(pickle.HIGHEST_PROTOCOL + 1):

Callers

nothing calls this directly

Calls 4

assertRaisesRegexMethod · 0.80
QueueClass · 0.70
writerMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected