Commit d72a5a7c authored by xoviat's avatar xoviat Committed by GitHub

tests: pep517: fix enter_directory

parent a2d62dd2
...@@ -49,10 +49,11 @@ class BuildBackendCaller(BuildBackendBase): ...@@ -49,10 +49,11 @@ class BuildBackendCaller(BuildBackendBase):
@contextmanager @contextmanager
def enter_directory(dir, val=None): def enter_directory(dir, val=None):
original_dir = os.getcwd() while True:
os.chdir(dir) original_dir = os.getcwd()
yield val os.chdir(dir)
os.chdir(original_dir) yield val
os.chdir(original_dir)
@pytest.fixture @pytest.fixture
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment