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

Method setUp

Lib/test/test_httpservers.py:1349–1354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1347 }
1348
1349 def setUp(self):
1350 super().setUp()
1351 self.tls_password_file = tempfile.mktemp()
1352 with open(self.tls_password_file, 'wb') as f:
1353 f.write(self.tls_password.encode())
1354 self.addCleanup(os_helper.unlink, self.tls_password_file)
1355
1356 def invoke_httpd(self, *args, stdout=None, stderr=None):
1357 stdout = StringIO() if stdout is None else stdout

Callers

nothing calls this directly

Calls 7

superClass · 0.85
mktempMethod · 0.80
addCleanupMethod · 0.80
openFunction · 0.50
setUpMethod · 0.45
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected