Commits

Lennart Regebro  committed d720f19

Once the test is correctly setup, the problem actually goes away.

  • Participants
  • Parent commits 7b90633

Comments (0)

Files changed (1)

File setuptools/tests/test_test.py

 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
             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)