diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-02 12:13:45 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-02 12:13:45 -0500 |
commit | f6684c70f00276cc1ffa5225e543fbf7d7de6e71 (patch) | |
tree | aaa6c59c7edc506193cf98bdebd3fc38e931889e /setuptools/tests/test_test.py | |
parent | 6a5d120fa48b91f4e4cd78404f48daa8f97a2bc4 (diff) | |
download | external_python_setuptools-f6684c70f00276cc1ffa5225e543fbf7d7de6e71.tar.gz external_python_setuptools-f6684c70f00276cc1ffa5225e543fbf7d7de6e71.tar.bz2 external_python_setuptools-f6684c70f00276cc1ffa5225e543fbf7d7de6e71.zip |
Use useroverride fixture
Diffstat (limited to 'setuptools/tests/test_test.py')
-rw-r--r-- | setuptools/tests/test_test.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py index aec9ec98..6d279e40 100644 --- a/setuptools/tests/test_test.py +++ b/setuptools/tests/test_test.py @@ -53,6 +53,7 @@ TEST_PY = DALS(""" @pytest.mark.skipif('hasattr(sys, "real_prefix")') +@pytest.mark.usefixture('useroverride') class TestTestTest: def setup_method(self, method): @@ -84,18 +85,10 @@ class TestTestTest: f.write(TEST_PY) os.chdir(self.dir) - self.old_base = site.USER_BASE - site.USER_BASE = tempfile.mkdtemp() - self.old_site = site.USER_SITE - site.USER_SITE = tempfile.mkdtemp() def teardown_method(self, method): os.chdir(self.old_cwd) shutil.rmtree(self.dir) - shutil.rmtree(site.USER_BASE) - shutil.rmtree(site.USER_SITE) - site.USER_BASE = self.old_base - site.USER_SITE = self.old_site def test_test(self): dist = Distribution(dict( |