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

Method test_copy

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

Source from the content-addressed store, hash-verified

2009 self.writer = codecs.getwriter('utf-8')
2010
2011 def test_copy(self):
2012 f = codecs.StreamReaderWriter(Queue(b''), self.reader, self.writer)
2013 with self.assertRaisesRegex(TypeError, 'StreamReaderWriter'):
2014 copy.copy(f)
2015 with self.assertRaisesRegex(TypeError, 'StreamReaderWriter'):
2016 copy.deepcopy(f)
2017
2018 def test_pickle(self):
2019 for proto in range(pickle.HIGHEST_PROTOCOL + 1):

Callers

nothing calls this directly

Calls 3

assertRaisesRegexMethod · 0.80
QueueClass · 0.70
copyMethod · 0.45

Tested by

no test coverage detected