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

Method setUp

Lib/test/test_io.py:2837–2842  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2835class TextIOWrapperTest(unittest.TestCase):
2836
2837 def setUp(self):
2838 self.testdata = b"AAA\r\nBBB\rCCC\r\nDDD\nEEE\r\n"
2839 self.normalized = b"AAA\nBBB\nCCC\nDDD\nEEE\n".decode("ascii")
2840 os_helper.unlink(os_helper.TESTFN)
2841 codecs.register(lookupTestDecoder)
2842 self.addCleanup(codecs.unregister, lookupTestDecoder)
2843
2844 def tearDown(self):
2845 os_helper.unlink(os_helper.TESTFN)

Callers

nothing calls this directly

Calls 4

addCleanupMethod · 0.80
decodeMethod · 0.45
unlinkMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected