summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-20 17:10:16 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-20 17:10:16 (GMT)
commit25d0bd687f10ae12e38f3b57df1d13f1b0de15d6 (patch)
tree661d9a0e7e303a737e874e8f0343e10f03917ae6
parent3a2e5ce57506d176b43777ab378f1e2de99eec7d (diff)
downloadcpython-25d0bd687f10ae12e38f3b57df1d13f1b0de15d6.zip
cpython-25d0bd687f10ae12e38f3b57df1d13f1b0de15d6.tar.gz
cpython-25d0bd687f10ae12e38f3b57df1d13f1b0de15d6.tar.bz2
Delete failing test that was checking that a slot declaration with
a non-ASCII character in it should fail. Because of PEP 3131 this test is bogus anyway. Also some cosmetic cleanup.
-rw-r--r--Lib/test/test_descr.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 8e57b90..8daa1a3 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1,6 +1,7 @@
# Test enhancements related to descriptors and new-style classes
-from test.test_support import verify, vereq, verbose, TestFailed, TESTFN, get_original_stdout
+from test.test_support import verify, vereq, verbose, TestFailed, TESTFN
+from test.test_support import get_original_stdout
from copy import deepcopy
import warnings
import types
@@ -1085,13 +1086,6 @@ def slots():
raise TestFailed, "['foo\\0bar'] slots not caught"
try:
class C(object):
- __slots__ = ["foo\u1234bar"]
- except TypeError:
- pass
- else:
- raise TestFailed, "['foo\\u1234bar'] slots not caught"
- try:
- class C(object):
__slots__ = ["1"]
except TypeError:
pass
@@ -3955,6 +3949,8 @@ def weakref_segfault():
def wrapper_segfault():
# SF 927248: deeply nested wrappers could cause stack overflow
+ if verbose:
+ print("Testing wrapper segfault...")
f = lambda:None
for i in range(1000000):
f = f.__call__
@@ -4127,7 +4123,7 @@ def test_assign_slice():
def test_main():
weakref_segfault() # Must be first, somehow
- wrapper_segfault()
+ wrapper_segfault() # NB This one is slow
do_this_first()
class_docstrings()
lists()