diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-09-24 14:24:50 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-09-24 14:24:50 -0400 |
commit | 3bae7527d2a47b83e44f418e3c30af8a52a94cf1 (patch) | |
tree | 3f2d4d1603cb15a5ec6996676139d3b525c5eca3 /setuptools/_distutils/tests/test_util.py | |
parent | ba3995e5705a22e13bb5d2231ac22c77e4417747 (diff) | |
parent | d82d926fa2a1f98cae05b21528fe2fafebb52938 (diff) | |
download | python-setuptools-git-3bae7527d2a47b83e44f418e3c30af8a52a94cf1.tar.gz |
Merge https://github.com/pypa/distutils into distutils-d82d926
Diffstat (limited to 'setuptools/_distutils/tests/test_util.py')
-rw-r--r-- | setuptools/_distutils/tests/test_util.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/_distutils/tests/test_util.py b/setuptools/_distutils/tests/test_util.py index 605b0d40..070a2770 100644 --- a/setuptools/_distutils/tests/test_util.py +++ b/setuptools/_distutils/tests/test_util.py @@ -136,17 +136,16 @@ class TestUtil: # XXX platforms to be covered: mac def test_check_environ(self): - util._environ_checked = 0 + util.check_environ.cache_clear() os.environ.pop('HOME', None) check_environ() assert os.environ['PLAT'] == get_platform() - assert util._environ_checked == 1 @pytest.mark.skipif("os.name != 'posix'") def test_check_environ_getpwuid(self): - util._environ_checked = 0 + util.check_environ.cache_clear() os.environ.pop('HOME', None) import pwd @@ -159,7 +158,7 @@ class TestUtil: check_environ() assert os.environ['HOME'] == '/home/distutils' - util._environ_checked = 0 + util.check_environ.cache_clear() os.environ.pop('HOME', None) # bpo-10496: Catch pwd.getpwuid() error |