This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rbcollins
Recipients michael.foord, r.david.murray, rbcollins
Date 2009-12-21.22:28:42
SpamBayes Score 0.0009015433
Marked as misclassified No
Message-id <1261434524.35.0.736042497057.issue7559@psf.upfronthosting.co.za>
In-reply-to
Content
mkdir thing touch thing/__init__.py echo "import blert" > thing/test_foo.py python -m unittest thing.test_fooTraceback (most recent call last): File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.6/runpy.py", line 34, in _run_code exec code in run_globals File "/usr/lib/python2.6/unittest.py", line 875, in <module> main(module=None) 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 'test_foo'
History
Date User Action Args
2009-12-21 22:28:44rbcollinssetrecipients: + rbcollins, r.david.murray, michael.foord
2009-12-21 22:28:44rbcollinssetmessageid: <1261434524.35.0.736042497057.issue7559@psf.upfronthosting.co.za>
2009-12-21 22:28:42rbcollinslinkissue7559 messages
2009-12-21 22:28:42rbcollinscreate