classification
Title: Test discovery (unittest) does not work with jython
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: michael.foord Nosy List: michael.foord
Priority: normal Keywords:

Created on 2010-11-26 16:58 by michael.foord, last changed 2012-03-13 19:46 by michael.foord. This issue is now closed.

Messages (4)
msg122467 - (view) Author: Michael Foord (michael.foord) * (Python committer) 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) * (Python committer) 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) * (Python committer) 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) * (Python committer) Date: 2012-03-13 19:46
Now fixed.
History
Date User Action Args
2012-03-13 19:46:24michael.foordsetstatus: open -> closed
resolution: fixed
messages: + msg155654

stage: resolved
2012-03-13 00:59:40michael.foordsetmessages: + msg155547
versions: + Python 3.2, Python 3.3
2010-11-26 17:42:43michael.foordsetmessages: + msg122469
versions: - Python 3.2
2010-11-26 16:59:49michael.foordsetassignee: michael.foord
type: behavior
components: + Library (Lib)
versions: + Python 2.7, Python 3.2
2010-11-26 16:58:56michael.foordcreate