Tests of zope.dottedname not actually run
Hello, all. When I run the test through 'python setup.py test', it shows: $ python setup.py test running test running egg_info writing requirements to src/zope.dottedname.egg-info/requires.txt writing src/zope.dottedname.egg-info/PKG-INFO writing namespace_packages to src/zope.dottedname.egg-info/namespace_packages.txt writing top-level names to src/zope.dottedname.egg-info/top_level.txt writing dependency_links to src/zope.dottedname.egg-info/dependency_links.txt reading manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' writing manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' running build_ext /usr/lib/python2.6/site-packages/zope/testing/doctest/__init__.py:104: DeprecationWarning: zope.testing.exceptions is deprecated in favour of zope.testrunner.exceptions from zope.testing.exceptions import DocTestFailureException /home/cheese/Downloads/zope/zope.dottedname-3.4.6/src/zope/dottedname/tests.py:19: DeprecationWarning: zope.testing.doctest is deprecated in favour of the Python standard library doctest module from zope.testing.doctest import DocFileSuite,REPORT_NDIFF,ELLIPSIS ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK So no test seems run. I have Python 2.6.4 and zope.testing 3.10.0, and added "test_suite='zope.dottedname'" to setup.py. Robin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robin Lee wrote:
Hello, all.
When I run the test through 'python setup.py test', it shows:
$ python setup.py test running test running egg_info writing requirements to src/zope.dottedname.egg-info/requires.txt writing src/zope.dottedname.egg-info/PKG-INFO writing namespace_packages to src/zope.dottedname.egg-info/namespace_packages.txt writing top-level names to src/zope.dottedname.egg-info/top_level.txt writing dependency_links to src/zope.dottedname.egg-info/dependency_links.txt reading manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' writing manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' running build_ext /usr/lib/python2.6/site-packages/zope/testing/doctest/__init__.py:104: DeprecationWarning: zope.testing.exceptions is deprecated in favour of zope.testrunner.exceptions from zope.testing.exceptions import DocTestFailureException /home/cheese/Downloads/zope/zope.dottedname-3.4.6/src/zope/dottedname/tests.py:19: DeprecationWarning: zope.testing.doctest is deprecated in favour of the Python standard library doctest module from zope.testing.doctest import DocFileSuite,REPORT_NDIFF,ELLIPSIS
---------------------------------------------------------------------- Ran 0 tests in 0.000s
OK
So no test seems run. I have Python 2.6.4 and zope.testing 3.10.0, and added "test_suite='zope.dottedname'" to setup.py.
Thanks for reporting this issue, and the one for zope.contenttype: I have fixed both on the trunk. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkyM9ugACgkQ+gerLs4ltQ6HvACgx5Wequ6z1fa4/BZBor1e5khk q+wAoJaQKUF8HFMY7roJ5HLWQbEh+uxf =XzZE -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robin Lee wrote:
The test of zope.dottedname doesn't work without zope.testing. It shows: $ python setup.py test running test running egg_info writing requirements to src/zope.dottedname.egg-info/requires.txt writing src/zope.dottedname.egg-info/PKG-INFO writing namespace_packages to src/zope.dottedname.egg-info/namespace_packages.txt writing top-level names to src/zope.dottedname.egg-info/top_level.txt writing dependency_links to src/zope.dottedname.egg-info/dependency_links.txt reading manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' writing manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "setup.py", line 56, in <module> zip_safe = False File "/usr/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/usr/lib/python2.6/site-packages/setuptools/command/test.py", line 137, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib/python2.6/site-packages/setuptools/command/test.py", line 117, in with_project_on_sys_path func() File "/usr/lib/python2.6/site-packages/setuptools/command/test.py", line 146, in run_tests testLoader = loader_class() File "/usr/lib/python2.6/unittest.py", line 816, in __init__ self.parseArgs(argv) File "/usr/lib/python2.6/unittest.py", line 843, in parseArgs self.createTests() File "/usr/lib/python2.6/unittest.py", line 849, in createTests self.module) File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib/python2.6/unittest.py", line 584, in loadTestsFromName parent, obj = obj, getattr(obj, part) AttributeError: 'module' object has no attribute 'tests'
Works for Me (TM) using a current SVN checkout: - --------------------- %< ---------------------- $ cd /tmp $ svn co http://svn.zope.org/repos/main/zope.dottedname/trunk zdn A zdn/LICENSE.txt A zdn/bootstrap.py A zdn/buildout.cfg A zdn/CHANGES.txt A zdn/COPYRIGHT.txt A zdn/setup.py A zdn/src A zdn/src/zope A zdn/src/zope/dottedname A zdn/src/zope/dottedname/__init__.py A zdn/src/zope/dottedname/resolve.py A zdn/src/zope/dottedname/tests.py A zdn/src/zope/dottedname/README.txt A zdn/src/zope/__init__.py U zdn Checked out revision 116336. $ cd zdn $ /opt/Python-2.6.5/bin/python setup.py test running test running egg_info creating src/zope.dottedname.egg-info writing requirements to src/zope.dottedname.egg-info/requires.txt writing src/zope.dottedname.egg-info/PKG-INFO writing namespace_packages to src/zope.dottedname.egg-info/namespace_packages.txt writing top-level names to src/zope.dottedname.egg-info/top_level.txt writing dependency_links to src/zope.dottedname.egg-info/dependency_links.txt writing manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' writing manifest file 'src/zope.dottedname.egg-info/SOURCES.txt' running build_ext Doctest: README.txt ... ok - ---------------------------------------------------------------------- Ran 1 test in 0.010s OK - --------------------- %< ---------------------- Note that LICENSE.txt is there as well. If you are still trying this with a downloaded tarball, note that I haven't (yet) pushed out a release containing this fix for either zope.dottedname or zope.contenttype. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkyNKvYACgkQ+gerLs4ltQ5JTACfSk8zeoqawTfPp9PVIrgVoyd/ ecQAoNN8nN7P1xC9gu6BPIP5ZPgD7PKs =3Etq -----END PGP SIGNATURE-----
participants (2)
-
Robin Lee -
Tres Seaver