mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Change fix for segfaulting property(), add a NEWS entry and a test.
This commit is contained in:
parent
06ded09d40
commit
e9462c72bd
4 changed files with 33 additions and 10 deletions
|
@ -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..."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue