Add some print statements in verbose mode to announce that the newest

tests are run.  (All tests in this module should have one of these at
the top.)
This commit is contained in:
Guido van Rossum 2003-01-06 21:26:44 +00:00
parent f09b88ee2f
commit 2720b0dff8

View file

@ -3441,6 +3441,8 @@ def __pow__(self, *args):
type.mro(tuple)
def test_mutable_bases():
if verbose:
print "Testing mutable bases..."
# stuff that should work:
class C(object):
pass
@ -3538,6 +3540,8 @@ def meth2(self):
raise TestFailed, "new-style class must have a new-style base"
def test_mutable_bases_with_failing_mro():
if verbose:
print "Testing mutable bases with failing mro..."
class WorkOnce(type):
def __new__(self, name, bases, ns):
self.flag = 0
@ -3591,6 +3595,8 @@ class G(D):
raise TestFailed, "exception not propagated"
def test_mutable_bases_catch_mro_conflict():
if verbose:
print "Testing mutable bases catch mro conflict..."
class A(object):
pass
@ -3614,6 +3620,8 @@ class E(C, D):
raise TestFailed, "didn't catch MRO conflict"
def mutable_names():
if verbose:
print "Testing mutable names..."
class C(object):
pass