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):
@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
......
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