Message96777
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' | |
| Date | User | Action | Args | | 2009-12-21 22:28:44 | rbcollins | set | recipients: + rbcollins, r.david.murray, michael.foord | | 2009-12-21 22:28:44 | rbcollins | set | messageid: <1261434524.35.0.736042497057.issue7559@psf.upfronthosting.co.za> | | 2009-12-21 22:28:42 | rbcollins | link | issue7559 messages | | 2009-12-21 22:28:42 | rbcollins | create | | |