summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/tests/support.py')
-rw-r--r--Lib/distutils/tests/support.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py
index 45c9441..e258d2e 100644
--- a/Lib/distutils/tests/support.py
+++ b/Lib/distutils/tests/support.py
@@ -3,19 +3,11 @@ import os
import shutil
import tempfile
from copy import deepcopy
-import warnings
from distutils import log
from distutils.log import DEBUG, INFO, WARN, ERROR, FATAL
from distutils.core import Distribution
-def capture_warnings(func):
- def _capture_warnings(*args, **kw):
- with warnings.catch_warnings():
- warnings.simplefilter("ignore")
- return func(*args, **kw)
- return _capture_warnings
-
class LoggingSilencer(object):
def setUp(self):
@@ -63,8 +55,6 @@ class TempdirManager(object):
super().tearDown()
while self.tempdirs:
d = self.tempdirs.pop()
- if not os.path.exists(d):
- continue
shutil.rmtree(d, os.name in ('nt', 'cygwin'))
def mkdtemp(self):