MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_copy

Method test_copy

Lib/test/test_coroutines.py:2123–2134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2121 ([], [[[111, 112], [121, 122]], [[211, 212], [221, 222]]]))
2122
2123 def test_copy(self):
2124 async def func(): pass
2125 coro = func()
2126 with self.assertRaises(TypeError):
2127 copy.copy(coro)
2128
2129 aw = coro.__await__()
2130 try:
2131 with self.assertRaises(TypeError):
2132 copy.copy(aw)
2133 finally:
2134 aw.close()
2135
2136 def test_pickle(self):
2137 async def func(): pass

Callers

nothing calls this directly

Calls 5

funcFunction · 0.70
assertRaisesMethod · 0.45
copyMethod · 0.45
__await__Method · 0.45
closeMethod · 0.45

Tested by

no test coverage detected