Re: Tests of zope.dottedname not actually run
Tres Seaver <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
-----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 [email protected] 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----- _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )