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

Method test_copy

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

Source from the content-addressed store, hash-verified

1968 self.assertEqual(f.readlines(), ['\ud55c\n', '\uae00'])
1969
1970 def test_copy(self):
1971 f = self.reader(Queue(b'\xed\x95\x9c\n\xea\xb8\x80'))
1972 with self.assertRaisesRegex(TypeError, 'StreamReader'):
1973 copy.copy(f)
1974 with self.assertRaisesRegex(TypeError, 'StreamReader'):
1975 copy.deepcopy(f)
1976
1977 def test_pickle(self):
1978 for proto in range(pickle.HIGHEST_PROTOCOL + 1):

Callers

nothing calls this directly

Calls 4

assertRaisesRegexMethod · 0.80
QueueClass · 0.70
readerMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected