aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_test.py
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2012-08-21 18:56:02 +0200
committerLennart Regebro <regebro@gmail.com>2012-08-21 18:56:02 +0200
commit78ac59d4ab00868456155cd3f83be15f78acccf3 (patch)
tree265dffdd573bd774c9f439b9b4d7731f802f753b /setuptools/tests/test_test.py
parentc8558d8d3b6c2cae273637ccec616489c2e7b439 (diff)
downloadexternal_python_setuptools-78ac59d4ab00868456155cd3f83be15f78acccf3.tar.gz
external_python_setuptools-78ac59d4ab00868456155cd3f83be15f78acccf3.tar.bz2
external_python_setuptools-78ac59d4ab00868456155cd3f83be15f78acccf3.zip
Once the test is correctly setup, the problem actually goes away.
--HG-- branch : distribute extra : rebase_source : 8a1c310010599165aa973bb207b07616428df66b
Diffstat (limited to 'setuptools/tests/test_test.py')
-rw-r--r--setuptools/tests/test_test.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py
index 7194399a..5000f234 100644
--- a/setuptools/tests/test_test.py
+++ b/setuptools/tests/test_test.py
@@ -14,10 +14,15 @@ from setuptools.dist import Distribution
SETUP_PY = """\
from setuptools import setup
-setup(name='foo')
+setup(name='foo',
+ packages=['name', 'name.space', 'name.space.tests'],
+ namespace_packages=['name'],
+ test_suite='name.space.tests.test_suite',
+)
"""
-NS_INIT = """try:
+NS_INIT = """
+try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
@@ -87,12 +92,11 @@ class TestTestTest(unittest.TestCase):
return
dist = Distribution(dict(
- script_name='setup.py',
- script_args=['bdist_egg'],
name='foo',
- py_modules=['name'],
+ packages=['name', 'name.space', 'name.space.tests'],
namespace_packages=['name'],
test_suite='name.space.tests.test_suite',
+ use_2to3=True,
))
dist.script_name = 'setup.py'
cmd = test(dist)