This commit is contained in:
Kovid Goyal
2024-02-15 15:01:50 +05:30
parent 76381f5cdd
commit e7d6101bd4
3 changed files with 10 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ import io
import os
import select
import shlex
import shutil
import signal
import struct
import sys
@@ -179,6 +180,12 @@ class BaseTest(TestCase):
maxDiff = 2048
is_ci = os.environ.get('CI') == 'true'
def rmtree_ignoring_errors(self, tdir):
try:
shutil.rmtree(tdir)
except FileNotFoundError as err:
print('Failed to delete the directory:', tdir, 'with error:', err, file=sys.stderr)
def tearDown(self):
set_options(None)