summaryrefslogtreecommitdiff
path: root/distutils2/tests/support.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2011-11-20 18:51:32 +0100
committer?ric Araujo <merwok@netwok.org>2011-11-20 18:51:32 +0100
commit47c9f06f2d34971a1c554c0020dc603c3ce3aaa1 (patch)
treeb92073d5c13c25c9135ce940e1c4074286e55530 /distutils2/tests/support.py
parent6eacd6a2a4aefec9563cd2c6ad689c112d9d3ecb (diff)
downloaddisutils2-47c9f06f2d34971a1c554c0020dc603c3ce3aaa1.tar.gz
Remove usage of stdlib shutil.
This should help avoiding issues like #13170. Because of implicit relative imports, _backport.tarfile already imported shutil from the backports instead of the stdlib; I have inlined the only function it needed to remove the circular dependency between these modules.
Diffstat (limited to 'distutils2/tests/support.py')
-rw-r--r--distutils2/tests/support.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/distutils2/tests/support.py b/distutils2/tests/support.py
index dad4d10..23c9ecb 100644
--- a/distutils2/tests/support.py
+++ b/distutils2/tests/support.py
@@ -37,7 +37,6 @@ import re
import sys
import errno
import codecs
-import shutil
import logging
import logging.handlers
import subprocess
@@ -53,7 +52,7 @@ from distutils2.util import resolve_name
from distutils2.command import set_command, _COMMANDS
from distutils2.tests import unittest
-from distutils2._backport import sysconfig
+from distutils2._backport import shutil, sysconfig
# define __all__ to make pydoc more useful
__all__ = [