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

Method setUp

Lib/test/test_getopt.py:14–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13class GetoptTests(unittest.TestCase):
14 def setUp(self):
15 self.env = self.enterContext(EnvironmentVarGuard())
16 del self.env["POSIXLY_CORRECT"]
17
18 def assertError(self, *args, **kwargs):
19 self.assertRaises(getopt.GetoptError, *args, **kwargs)

Callers

nothing calls this directly

Calls 2

EnvironmentVarGuardClass · 0.90
enterContextMethod · 0.80

Tested by

no test coverage detected