diff options
-rwxr-xr-x | run_unittests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py index f336270..9cd95f0 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -83,8 +83,10 @@ URLOPEN_TIMEOUT = 5 def chdir(path: str): curdir = os.getcwd() os.chdir(path) - yield - os.chdir(curdir) + try: + yield + finally: + os.chdir(curdir) def get_dynamic_section_entry(fname, entry): |