diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-11 09:18:52 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-11 09:18:52 -0400 |
commit | a64f2c39bc2e5d3382f2573a570a161a41499fa7 (patch) | |
tree | a5012d4a9d489af3f6cdba185bfbaf83fc3ea85c /tests/manual_test.py | |
parent | f9a347b122e96104599befa5c7d73ca1d74f4cd5 (diff) | |
download | external_python_setuptools-a64f2c39bc2e5d3382f2573a570a161a41499fa7.tar.gz external_python_setuptools-a64f2c39bc2e5d3382f2573a570a161a41499fa7.tar.bz2 external_python_setuptools-a64f2c39bc2e5d3382f2573a570a161a41499fa7.zip |
Allow the test to fail on its own merits rather than failing with a not-so-useful message; removed Python 2.3 support.
Diffstat (limited to 'tests/manual_test.py')
-rw-r--r-- | tests/manual_test.py | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/tests/manual_test.py b/tests/manual_test.py index 3eab99e1..e6489b1c 100644 --- a/tests/manual_test.py +++ b/tests/manual_test.py @@ -1,31 +1,16 @@ #!/usr/bin/env python -import sys - -if sys.version_info[0] >= 3: - raise NotImplementedError('Py3 not supported in this test yet') +import sys import os import shutil import tempfile +import subprocess from distutils.command.install import INSTALL_SCHEMES from string import Template from setuptools.compat import urlopen -try: - import subprocess - def _system_call(*args): - assert subprocess.call(args) == 0 -except ImportError: - # Python 2.3 - def _system_call(*args): - # quoting arguments if windows - if sys.platform == 'win32': - def quote(arg): - if ' ' in arg: - return '"%s"' % arg - return arg - args = [quote(arg) for arg in args] - assert os.system(' '.join(args)) == 0 +def _system_call(*args): + assert subprocess.call(args) == 0 def tempdir(func): def _tempdir(*args, **kwargs): |