aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/__init__.py
diff options
context:
space:
mode:
authorJim Fulton <distutils-sig@python.org>2006-08-22 19:58:05 +0000
committerJim Fulton <distutils-sig@python.org>2006-08-22 19:58:05 +0000
commitcd84d4b5eb8113b416f6cb080b3445799ed2ff99 (patch)
tree5dbdd13cbb5d1ed57d237bd7b4567e7a75c735fc /setuptools/tests/__init__.py
parentf744be10b9702c1056fda2e18cfa9e8cb99d331a (diff)
downloadexternal_python_setuptools-cd84d4b5eb8113b416f6cb080b3445799ed2ff99.tar.gz
external_python_setuptools-cd84d4b5eb8113b416f6cb080b3445799ed2ff99.tar.bz2
external_python_setuptools-cd84d4b5eb8113b416f6cb080b3445799ed2ff99.zip
Added quoting of script arguments and extended the quoting logic to
handle embedded quotes. Added support for passing a single argument on the shebang line to pass things like -O and -i. Fixed bug in handling trailing whitespace in Python command. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051487
Diffstat (limited to 'setuptools/tests/__init__.py')
-rw-r--r--setuptools/tests/__init__.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py
index ea469446..14942c61 100644
--- a/setuptools/tests/__init__.py
+++ b/setuptools/tests/__init__.py
@@ -14,11 +14,16 @@ from distutils.util import convert_path
import sys, os.path
def additional_tests():
- import doctest
- return doctest.DocFileSuite(
- 'api_tests.txt', optionflags=doctest.ELLIPSIS, package='pkg_resources',
- )
-
+ import doctest, unittest
+ suite = unittest.TestSuite((
+ doctest.DocFileSuite(
+ 'api_tests.txt',
+ optionflags=doctest.ELLIPSIS, package='pkg_resources',
+ ),
+ ))
+ if sys.platform == 'win32':
+ suite.addTest(doctest.DocFileSuite('win_script_wrapper.txt'))
+ return suite
def makeSetup(**args):
"""Return distribution from 'setup(**args)', without executing commands"""