Issue 10543: Test discovery (unittest) does not work with jython (original) (raw)
Issue10543
Created on 2010-11-26 16:58 by michael.foord, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (4) | ||
---|---|---|
msg122467 - (view) | Author: Michael Foord (michael.foord) * ![]() |
Date: 2010-11-26 16:58 |
This is because jython creates bytecode files with names like "tests/testwith$py.class". unittest test discovery splits the extension off __file__ to compare module.__file__ to the expected path. | ||
msg122469 - (view) | Author: Michael Foord (michael.foord) * ![]() |
Date: 2010-11-26 17:42 |
Won't need fixing in 3.2. The __pycache__ changes mean that the module.__file__ no longer points to the compiled bytecode file. | ||
msg155547 - (view) | Author: Michael Foord (michael.foord) * ![]() |
Date: 2012-03-13 00:59 |
Fixed in 2.7. Worth fixing in Python 3.2 / 3.2 anyway as sourceless distributions (bytecode only) are still possible. | ||
msg155654 - (view) | Author: Michael Foord (michael.foord) * ![]() |
Date: 2012-03-13 19:46 |
Now fixed. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:09 | admin | set | github: 54752 |
2012-03-13 19:46:24 | michael.foord | set | status: open -> closedresolution: fixedmessages: + stage: resolved |
2012-03-13 00:59:40 | michael.foord | set | messages: + versions: + Python 3.2, Python 3.3 |
2010-11-26 17:42:43 | michael.foord | set | messages: + versions: - Python 3.2 |
2010-11-26 16:59:49 | michael.foord | set | assignee: michael.foordtype: behaviorcomponents: + Library (Lib)versions: + Python 2.7, Python 3.2 |
2010-11-26 16:58:56 | michael.foord | create |