mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue 6292: for the moment at least, the test suite passes if run
with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch.
This commit is contained in:
parent
87bcb243ac
commit
f28fd24c36
19 changed files with 194 additions and 41 deletions
|
@ -2057,6 +2057,9 @@ order (MRO) for bases """
|
|||
else:
|
||||
self.fail("expected ZeroDivisionError from bad property")
|
||||
|
||||
@unittest.skipIf(sys.flags.optimize >= 2,
|
||||
"Docstrings are omitted with -O2 and above")
|
||||
def test_properties_doc_attrib(self):
|
||||
class E(object):
|
||||
def getter(self):
|
||||
"getter method"
|
||||
|
@ -2069,6 +2072,7 @@ order (MRO) for bases """
|
|||
prop2 = property(fset=setter)
|
||||
self.assertEqual(prop2.__doc__, None)
|
||||
|
||||
def test_testcapi_no_segfault(self):
|
||||
# this segfaulted in 2.5b2
|
||||
try:
|
||||
import _testcapi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue