Kaydet (Commit) 2720b0df authored tarafından Guido van Rossum's avatar Guido van Rossum

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.)
üst f09b88ee
...@@ -3441,6 +3441,8 @@ def do_this_first(): ...@@ -3441,6 +3441,8 @@ def do_this_first():
type.mro(tuple) type.mro(tuple)
def test_mutable_bases(): def test_mutable_bases():
if verbose:
print "Testing mutable bases..."
# stuff that should work: # stuff that should work:
class C(object): class C(object):
pass pass
...@@ -3538,6 +3540,8 @@ def test_mutable_bases(): ...@@ -3538,6 +3540,8 @@ def test_mutable_bases():
raise TestFailed, "new-style class must have a new-style base" raise TestFailed, "new-style class must have a new-style base"
def test_mutable_bases_with_failing_mro(): def test_mutable_bases_with_failing_mro():
if verbose:
print "Testing mutable bases with failing mro..."
class WorkOnce(type): class WorkOnce(type):
def __new__(self, name, bases, ns): def __new__(self, name, bases, ns):
self.flag = 0 self.flag = 0
...@@ -3591,6 +3595,8 @@ def test_mutable_bases_with_failing_mro(): ...@@ -3591,6 +3595,8 @@ def test_mutable_bases_with_failing_mro():
raise TestFailed, "exception not propagated" raise TestFailed, "exception not propagated"
def test_mutable_bases_catch_mro_conflict(): def test_mutable_bases_catch_mro_conflict():
if verbose:
print "Testing mutable bases catch mro conflict..."
class A(object): class A(object):
pass pass
...@@ -3614,6 +3620,8 @@ def test_mutable_bases_catch_mro_conflict(): ...@@ -3614,6 +3620,8 @@ def test_mutable_bases_catch_mro_conflict():
raise TestFailed, "didn't catch MRO conflict" raise TestFailed, "didn't catch MRO conflict"
def mutable_names(): def mutable_names():
if verbose:
print "Testing mutable names..."
class C(object): class C(object):
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment