Message5108

Author hpk
Recipients fwierzbicki, hpk
Date 2009-09-07.10:56:46
SpamBayes Score 4.969379e-05
Marked as misclassified No
Message-id <1252321007.6.0.0892100394767.issue1461@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-09-07 10:56:47hpksetrecipients: + hpk, fwierzbicki
2009-09-07 10:56:47hpksetmessageid: <1252321007.6.0.0892100394767.issue1461@psf.upfronthosting.co.za>
2009-09-07 10:56:47hpklinkissue1461 messages
2009-09-07 10:56:46hpkcreate