We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a9939 commit 1270ad6Copy full SHA for 1270ad6
Lib/test/test_site.py
@@ -79,8 +79,10 @@ def tearDown(self):
79
site.USER_SITE = self.old_site
80
site.PREFIXES = self.old_prefixes
81
sysconfig._CONFIG_VARS = self.original_vars
82
- sysconfig._CONFIG_VARS.clear()
83
- sysconfig._CONFIG_VARS.update(self.old_vars)
+ # _CONFIG_VARS is None before get_config_vars() is called
+ if sysconfig._CONFIG_VARS is not None:
84
+ sysconfig._CONFIG_VARS.clear()
85
+ sysconfig._CONFIG_VARS.update(self.old_vars)
86
87
def test_makepath(self):
88
# Test makepath() have an absolute path for its first return value
0 commit comments