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 eecdc9e commit b9258b0Copy full SHA for b9258b0
Lib/test/test_site.py
@@ -76,8 +76,10 @@ def tearDown(self):
76
site.USER_SITE = self.old_site
77
site.PREFIXES = self.old_prefixes
78
sysconfig._CONFIG_VARS = self.original_vars
79
- sysconfig._CONFIG_VARS.clear()
80
- sysconfig._CONFIG_VARS.update(self.old_vars)
+ # _CONFIG_VARS is None before get_config_vars() is called
+ if sysconfig._CONFIG_VARS is not None:
81
+ sysconfig._CONFIG_VARS.clear()
82
+ sysconfig._CONFIG_VARS.update(self.old_vars)
83
84
def test_makepath(self):
85
# Test makepath() have an absolute path for its first return value
0 commit comments