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

Method setUp

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

Source from the content-addressed store, hash-verified

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