Message5108
Hey Frank,
while trying to make py.test work with jython i noticed that unlike
cpython and pypy, jython does not lookup the AssertionError from the
builtins. Here is an example session with jython-2.5.0
>>> import __builtin__
>>> __builtin__.AssertionError = MyAE
>>> assert 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError
>>> raise AssertionError
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
__main__.MyAE
>>>
With CPython (2.5/6 and 3.x) and pypy the custom error is raised in all
cases. Could you fix that for 2.5.1?
best,
holger |
|
Date |
User |
Action |
Args |
2009-09-07 10:56:47 | hpk | set | recipients:
+ hpk, fwierzbicki |
2009-09-07 10:56:47 | hpk | set | messageid: <1252321007.6.0.0892100394767.issue1461@psf.upfronthosting.co.za> |
2009-09-07 10:56:47 | hpk | link | issue1461 messages |
2009-09-07 10:56:46 | hpk | create | |
|