tests: make chdir more robust in run_unittests.py

pull/7655/head
Daniel Mensinger 4 years ago committed by Jussi Pakkanen
parent 6f74692ae0
commit 6fc067344d
  1. 6
      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):

Loading…
Cancel
Save