[pypy-issue] [issue1461] new style class recursive __call__ doesn't trigger a RuntimeError on windows
Philip Jenvey
tracker at bugs.pypy.org
Sat Apr 20 02:29:42 CEST 2013
New submission from Philip Jenvey <pjenvey at underboss.org>:
Windows hangs on this test_descr test:
def test_recursive_call(self):
# Testing recursive __call__() by setting to instance of class...
class A(object):
pass
A.__call__ = A()
try:
A()()
except RuntimeError:
pass
else:
self.fail("Recursion limit should have been reached for __call__()")
It's only a problem w/ new style classes, old style classes trigger the
RuntimeError
posix handles it all just fine
----------
messages: 5605
nosy: pypy-issue
priority: bug
release: 1.9
status: unread
title: new style class recursive __call__ doesn't trigger a RuntimeError on windows
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1461>
________________________________________
More information about the pypy-issue
mailing list