projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use PosixPath arguments with os.remove()
[mudpy.git]
/
mudpy
/
tests
/
selftest.py
diff --git
a/mudpy/tests/selftest.py
b/mudpy/tests/selftest.py
index
ede3cb2
..
bb19d33
100644
(file)
--- a/
mudpy/tests/selftest.py
+++ b/
mudpy/tests/selftest.py
@@
-477,9
+477,7
@@
def start_service(config):
# Clean up any previous test output
for f in pathlib.Path(".").glob("capture_*.log"):
# Clean up any previous test output
for f in pathlib.Path(".").glob("capture_*.log"):
- # have to use .name here since remove() doesn't support passing a
- # PosixPath argument until Python3.6
- os.remove(f.name)
+ os.remove(f)
for d in ("data", "var"):
shutil.rmtree(d, ignore_errors=True)
for d in ("data", "var"):
shutil.rmtree(d, ignore_errors=True)