[Python-3000-checkins] r56470 - python/branches/py3k-struni/Lib/test/test_descr.py
guido.van.rossum
python-3000-checkins at python.org
Fri Jul 20 19:10:17 CEST 2007
Author: guido.van.rossum
Date: Fri Jul 20 19:10:16 2007
New Revision: 56470
Modified:
python/branches/py3k-struni/Lib/test/test_descr.py
Log:
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.
Modified: python/branches/py3k-struni/Lib/test/test_descr.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_descr.py (original)
+++ python/branches/py3k-struni/Lib/test/test_descr.py Fri Jul 20 19:10:16 2007
@@ -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 @@
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 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_main():
weakref_segfault() # Must be first, somehow
- wrapper_segfault()
+ wrapper_segfault() # NB This one is slow
do_this_first()
class_docstrings()
lists()
More information about the Python-3000-checkins
mailing list