Back to index

python3.2  3.2.2
Public Member Functions
test.test_descr.PTypesLongInitTest Class Reference

List of all members.

Public Member Functions

def test_pytype_long_ready

Detailed Description

Definition at line 4313 of file test_descr.py.


Member Function Documentation

Definition at line 4315 of file test_descr.py.

04315 
04316     def test_pytype_long_ready(self):
04317         # Testing SF bug 551412 ...
04318 
04319         # This dumps core when SF bug 551412 isn't fixed --
04320         # but only when test_descr.py is run separately.
04321         # (That can't be helped -- as soon as PyType_Ready()
04322         # is called for PyLong_Type, the bug is gone.)
04323         class UserLong(object):
04324             def __pow__(self, *args):
04325                 pass
04326         try:
04327             pow(0, UserLong(), 0)
04328         except:
04329             pass
04330 
04331         # Another segfault only when run early
04332         # (before PyType_Ready(tuple) is called)
04333         type.mro(tuple)
04334 


The documentation for this class was generated from the following file: