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

Method tearDown

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

Source from the content-addressed store, hash-verified

3169 self.obj_to_raise = RuntimeError
3170
3171 def tearDown(self):
3172 _TEST_CODECS.pop(self.codec_name, None)
3173 # Issue #22166: Also pop from caches to avoid appearance of ref leaks
3174 encodings._cache.pop(self.codec_name, None)
3175
3176 def set_codec(self, encode, decode):
3177 codec_info = codecs.CodecInfo(encode, decode,

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected