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

Method setUp

Lib/test/test_subprocess.py:4005–4012  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4003class CommandsWithSpaces (BaseTestCase):
4004
4005 def setUp(self):
4006 super().setUp()
4007 f, fname = tempfile.mkstemp(".py", "te st")
4008 self.fname = fname.lower ()
4009 os.write(f, b"import sys;"
4010 b"sys.stdout.write('%d %s' % (len(sys.argv), [a.lower () for a in sys.argv]))"
4011 )
4012 os.close(f)
4013
4014 def tearDown(self):
4015 os.remove(self.fname)

Callers

nothing calls this directly

Calls 5

superClass · 0.85
setUpMethod · 0.45
lowerMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected