diff options
author | Philip Thiem <ptthiem@gmail.com> | 2013-09-28 12:33:19 -0500 |
---|---|---|
committer | Philip Thiem <ptthiem@gmail.com> | 2013-09-28 12:33:19 -0500 |
commit | 78f01306a08285e9f2abe6ad749f6ce884e12555 (patch) | |
tree | c4769869539d5ae9101a7e8e76a46e9e292b9b97 /tests | |
parent | 30bb58f069cf1624f35cfbdb725e8e443ff64330 (diff) | |
parent | 49ce80613b7fcffd1882f7fb082e5bcc30e976f0 (diff) | |
download | external_python_setuptools-78f01306a08285e9f2abe6ad749f6ce884e12555.tar.gz external_python_setuptools-78f01306a08285e9f2abe6ad749f6ce884e12555.tar.bz2 external_python_setuptools-78f01306a08285e9f2abe6ad749f6ce884e12555.zip |
Merge with default
--HG--
extra : rebase_source : d9c70d5bebd4290f568c828c5bc3a9b93a817ff2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/api_tests.txt | 8 | ||||
-rw-r--r-- | tests/manual_test.py | 23 |
2 files changed, 8 insertions, 23 deletions
diff --git a/tests/api_tests.txt b/tests/api_tests.txt index 86ca245d..d34f2314 100644 --- a/tests/api_tests.txt +++ b/tests/api_tests.txt @@ -341,8 +341,8 @@ Environment Markers >>> print(im("sys_platform")) Comparison or logical expression expected - >>> print(im("sys_platform==")) # doctest: +ELLIPSIS - unexpected EOF while parsing (...line 1) + >>> print(im("sys_platform==")) + invalid syntax >>> print(im("sys_platform=='win32'")) False @@ -353,8 +353,8 @@ Environment Markers >>> print(im("(extra)")) Comparison or logical expression expected - >>> print(im("(extra")) # doctest: +ELLIPSIS - unexpected EOF while parsing (...line 1) + >>> print(im("(extra")) + invalid syntax >>> print(im("os.open('foo')=='y'")) Language feature not supported in environment markers 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): |