[Python-checkins] r52835 - python/trunk/Lib/test/test_descr.py

michael.hudson python-checkins at python.org
Thu Nov 23 14:54:04 CET 2006


Author: michael.hudson
Date: Thu Nov 23 14:54:04 2006
New Revision: 52835

Modified:
   python/trunk/Lib/test/test_descr.py
Log:
a test for an error condition not covered by existing tests 
(noticed this when writing the equivalent code for pypy)


Modified: python/trunk/Lib/test/test_descr.py
==============================================================================
--- python/trunk/Lib/test/test_descr.py	(original)
+++ python/trunk/Lib/test/test_descr.py	Thu Nov 23 14:54:04 2006
@@ -3623,6 +3623,13 @@
         raise TestFailed, "shouldn't be able to assign to list.__bases__"
 
     try:
+        D.__bases__ = (C2, list)
+    except TypeError:
+        pass
+    else:
+        assert 0, "best_base calculation found wanting"
+
+    try:
         del D.__bases__
     except TypeError:
         pass


More information about the Python-checkins mailing list