cpython: f89ef18f9824 (original) (raw)

--- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -3,6 +3,7 @@ import gc import sys import types import unittest +import warnings import weakref from copy import deepcopy @@ -1550,6 +1551,86 @@ order (MRO) for bases """ self.assertEqual(b.foo, 3) self.assertEqual(b.class, D)

+

+

+

+

+

+ def test_altmro(self): # Testing mro() and overriding it... class A(object): @@ -3756,6 +3837,24 @@ order (MRO) for bases """ self.assertEqual(isinstance(d, D), True) self.assertEqual(d.foo, 1)

+

+ def test_imul_bug(self): # Testing for imul problems... # SF bug 544647