mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
parent
0367bc6d04
commit
680cc417d3
1 changed files with 0 additions and 4 deletions
|
@ -59,7 +59,3 @@ class RunInTmpDirMixin:
|
||||||
if os.path.commonprefix([self.test_dir, os.path.abspath(dname)]) != self.test_dir:
|
if os.path.commonprefix([self.test_dir, os.path.abspath(dname)]) != self.test_dir:
|
||||||
return
|
return
|
||||||
shutil.rmtree(dname)
|
shutil.rmtree(dname)
|
||||||
|
|
||||||
def rmfile(self, filepath):
|
|
||||||
if os.path.exists(filepath):
|
|
||||||
os.remove(filepath)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue