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

Method setUp

Lib/test/test_site.py:71–78  ·  view source on GitHub ↗

Save a copy of sys.path

(self)

Source from the content-addressed store, hash-verified

69 """
70
71 def setUp(self):
72 """Save a copy of sys.path"""
73 self.sys_path = sys.path[:]
74 self.old_base = site.USER_BASE
75 self.old_site = site.USER_SITE
76 self.old_prefixes = site.PREFIXES
77 self.original_vars = sysconfig._CONFIG_VARS
78 self.old_vars = copy(sysconfig._CONFIG_VARS)
79
80 def tearDown(self):
81 """Restore sys.path"""

Callers

nothing calls this directly

Calls 1

copyFunction · 0.90

Tested by

no test coverage detected