From: Michael W. Hudson Date: Thu, 23 Nov 2006 13:54:04 +0000 (+0000) Subject: a test for an error condition not covered by existing tests X-Git-Tag: v2.6a1~2407 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f39044213058a354db11b9b44ff0addf81a4bbd4;p=thirdparty%2FPython%2Fcpython.git a test for an error condition not covered by existing tests (noticed this when writing the equivalent code for pypy) --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index b10839526926..89279070cd70 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -3622,6 +3622,13 @@ def test_mutable_bases(): else: 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: