diff options
| author | xoviat <xoviat@users.noreply.github.com> | 2017-09-24 19:13:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-24 19:13:37 -0500 |
| commit | d72a5a7c28794cabfc9481691eb89e86fc37efb6 (patch) | |
| tree | baedfc8d71ede995147b3df2c88ac875489f9499 | |
| parent | a2d62dd2a79720c8780645cfca2ff64eea18ffcf (diff) | |
| download | external_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.py | 9 |
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 |
