[Python-checkins] python/dist/src/Lib/test test_descr.py, 1.196,
1.197
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Thu Aug 7 08:58:12 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv27561/Lib/test
Modified Files:
test_descr.py
Log Message:
Repair refcounting on error return from type_set_bases.
Include a test case that failed for one of my efforts to repair this.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.196
retrieving revision 1.197
diff -C2 -d -r1.196 -r1.197
*** test_descr.py 29 Jun 2003 15:44:07 -0000 1.196
--- test_descr.py 7 Aug 2003 14:58:10 -0000 1.197
***************
*** 3587,3590 ****
--- 3587,3597 ----
try:
+ D.__bases__ = (C, C)
+ except TypeError:
+ pass
+ else:
+ raise TestFailed, "didn't detect repeated base classes"
+
+ try:
D.__bases__ = (E,)
except TypeError:
More information about the Python-checkins
mailing list