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 vajrasky
Recipients vajrasky
Date 2014-07-27.14:50:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406472645.11.0.803987239444.issue22092@psf.upfronthosting.co.za>
In-reply-to
Content
For examples:

$ ./python Lib/unittest/test/test_runner.py 
Traceback (most recent call last):
  File "Lib/unittest/test/test_runner.py", line 10, in <module>
    from .support import LoggingResult, ResultWithNoStartTestRunStopTestRun
SystemError: Parent module '' not loaded, cannot perform relative import

$ ./python Lib/unittest/test/test_program.py 
..................E
======================================================================
ERROR: test_discovery_from_dotted_path (__main__.Test_TestProgram)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/unittest/test/test_program.py", line 15, in test_discovery_from_dotted_path
    expectedPath = os.path.abspath(os.path.dirname(unittest.test.__file__))
AttributeError: module 'unittest' has no attribute 'test'

----------------------------------------------------------------------
Ran 19 tests in 0.331s

FAILED (errors=1)


Here is the patch.
History
Date User Action Args
2014-07-27 14:50:45vajraskysetrecipients: + vajrasky
2014-07-27 14:50:45vajraskysetmessageid: <1406472645.11.0.803987239444.issue22092@psf.upfronthosting.co.za>
2014-07-27 14:50:45vajraskylinkissue22092 messages
2014-07-27 14:50:45vajraskycreate