Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
c9a7e7a4
Commit
c9a7e7a4
authored
Nov 02, 2017
by
di68kap
Browse files
- test_toolkit.py: 'tmp' directory is not assumed to exist already
parent
3a333dd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_toolkit.py
View file @
c9a7e7a4
...
...
@@ -43,6 +43,11 @@ class TestLoggingAndLoading:
def
teardown
(
self
):
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
)
if
os
.
path
.
exists
(
"TESTLOGS"
):
os
.
remove
(
"TESTLOGS/info.txt"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment