aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-09-24 19:13:37 -0500
committerGitHub <noreply@github.com>2017-09-24 19:13:37 -0500
commitd72a5a7c28794cabfc9481691eb89e86fc37efb6 (patch)
treebaedfc8d71ede995147b3df2c88ac875489f9499
parenta2d62dd2a79720c8780645cfca2ff64eea18ffcf (diff)
downloadexternal_python_setuptools-d72a5a7c28794cabfc9481691eb89e86fc37efb6.tar.gz
external_python_setuptools-d72a5a7c28794cabfc9481691eb89e86fc37efb6.tar.bz2
external_python_setuptools-d72a5a7c28794cabfc9481691eb89e86fc37efb6.zip
tests: pep517: fix enter_directory
-rw-r--r--setuptools/tests/test_pep517.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setuptools/tests/test_pep517.py b/setuptools/tests/test_pep517.py
index ea149f73..442a0649 100644
--- a/setuptools/tests/test_pep517.py
+++ b/setuptools/tests/test_pep517.py
@@ -49,10 +49,11 @@ class BuildBackendCaller(BuildBackendBase):
@contextmanager
def enter_directory(dir, val=None):
- original_dir = os.getcwd()
- os.chdir(dir)
- yield val
- os.chdir(original_dir)
+ while True:
+ original_dir = os.getcwd()
+ os.chdir(dir)
+ yield val
+ os.chdir(original_dir)
@pytest.fixture