Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit c9a7e7a4 authored by di68kap's avatar di68kap
Browse files

- test_toolkit.py: 'tmp' directory is not assumed to exist already

parent 3a333dd1
...@@ -43,6 +43,11 @@ class TestLoggingAndLoading: ...@@ -43,6 +43,11 @@ class TestLoggingAndLoading:
def teardown(self): def teardown(self):
os.remove(self.filename) os.remove(self.filename)
pycachedir = os.path.join(self.dirname,'__pycache__')
if os.path.exists(pycachedir):
for fname in os.listdir(pycachedir):
os.remove(os.path.join(pycachedir, fname))
os.rmdir(pycachedir)
os.rmdir(self.dirname) os.rmdir(self.dirname)
if os.path.exists("TESTLOGS"): if os.path.exists("TESTLOGS"):
os.remove("TESTLOGS/info.txt") os.remove("TESTLOGS/info.txt")
......
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