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

Commit 93a58ddc authored by di68kap's avatar di68kap
Browse files

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

parent c9a7e7a4
...@@ -90,6 +90,11 @@ class TestCompilerGeneration: ...@@ -90,6 +90,11 @@ class TestCompilerGeneration:
flag = True flag = True
if not flag: if not flag:
os.rmdir('LOGS') os.rmdir('LOGS')
pycachedir = os.path.join(self.tmp,'__pycache__')
if os.path.exists(pycachedir):
for fname in os.listdir(pycachedir):
os.remove(os.path.join(pycachedir, fname))
os.rmdir(pycachedir)
if os.path.exists(self.tmp): if os.path.exists(self.tmp):
os.rmdir(self.tmp) os.rmdir(self.tmp)
......
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