X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Ftests%2Fselftest.py;fp=mudpy%2Ftests%2Fselftest.py;h=bb19d331ff347f72031a432934c01e0be89c6f8c;hp=ede3cb26f70e6d469095f4ac12089c37aec1bfc6;hb=a75fa6326ef030ad1dbbe25171c75180f93e657c;hpb=6f30c3687aa92729c549132b47825f1f9fedd6bd diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index ede3cb2..bb19d33 100644 --- 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"): - # 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)