🐛 dinglehopper: Fix working_directory() context manager

pull/29/head
Gerber, Mike 5 years ago
parent 5273d10bac
commit f98c527c93

@ -16,7 +16,7 @@ class working_directory:
os.chdir(self.wd) os.chdir(self.wd)
def __exit__(self, etype, value, traceback): def __exit__(self, etype, value, traceback):
os.chdir(self.wd) os.chdir(self.old_wd)
def test_cli_json(tmp_path): def test_cli_json(tmp_path):

@ -23,7 +23,7 @@ class working_directory:
os.chdir(self.wd) os.chdir(self.wd)
def __exit__(self, etype, value, traceback): def __exit__(self, etype, value, traceback):
os.chdir(self.wd) os.chdir(self.old_wd)
def test_ocrd_cli(tmp_path): def test_ocrd_cli(tmp_path):

Loading…
Cancel
Save