Kaydet (Commit) f3904421 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

a test for an error condition not covered by existing tests

(noticed this when writing the equivalent code for pypy)
üst 3f969022
......@@ -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:
......
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