Roundup Robot added the comment:
New changeset 668f6938fb1c by Ezio Melotti in branch '3.4':
#22092: use absolute imports in unittest tests. Patch by Vajrasky Kok.
http://hg.python.org/cpython/rev/668f6938fb1c
New changeset 09f56fdcacf1 by Ezio Melotti in branch 'default':
#22092: merge with
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: michael.foord - ezio.melotti
resolution: - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 2.7
___
Python tracker
Ezio Melotti added the comment:
I left a comment on rietveld.
Michael, do you think changing the imports is OK, or will this cause you some
troubles with the external unittest package you maintain?
--
assignee: - michael.foord
stage: - patch review
type: - behavior
Vajrasky Kok added the comment:
Here is the patch based on Ezio's review. Thanks!
--
Added file: http://bugs.python.org/file36237/fix_test_inside_unittest_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22092
Michael Foord added the comment:
Patch looks fine, easy enough to change for unittest2 (if I ever have the time
for a new release!)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22092
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22092
___
___
Python-bugs-list
New submission from Vajrasky Kok:
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 ''
Changes by Vajrasky Kok sky@speaklikeaking.com:
Removed file: http://bugs.python.org/file36132/fix_test_inside_unittest.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22092
___
Changes by Vajrasky Kok sky@speaklikeaking.com:
Added file: http://bugs.python.org/file36133/fix_test_inside_unittest.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22092
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22092
___
___
10 matches
Mail list logo