Change fix for segfaulting property(), add a NEWS entry and a test.

This commit is contained in:
Georg Brandl 2006-08-04 18:03:37 +00:00
parent 06ded09d40
commit e9462c72bd
4 changed files with 33 additions and 10 deletions

View file

@ -2024,6 +2024,16 @@ def properties():
prop2 = property(fset=setter)
vereq(prop2.__doc__, None)
# this segfaulted in 2.5b2
try:
import _testcapi
except ImportError:
pass
else:
class X(object):
p = property(_testcapi.test_with_docstring)
def supers():
if verbose: print "Testing super..."