Lennart Regebro avatar Lennart Regebro committed d720f19

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

Comments (0)

Files changed (1)

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.