mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Ouch, it's Carlo Verre, not Verre Carlo.
This commit is contained in:
parent
357981e99d
commit
52b2705e9c
2 changed files with 6 additions and 6 deletions
|
@ -3840,21 +3840,21 @@ def proxysuper():
|
|||
p = Proxy(obj)
|
||||
vereq(C.__dict__["f"](p), "B.f->C.f")
|
||||
|
||||
def verrecarlo():
|
||||
def carloverre():
|
||||
if verbose:
|
||||
print "Testing prohibition of Verre Carlo's hack..."
|
||||
print "Testing prohibition of Carlo Verre's hack..."
|
||||
try:
|
||||
object.__setattr__(str, "foo", 42)
|
||||
except TypeError:
|
||||
pass
|
||||
else:
|
||||
raise TestFailed, "Verre Carlo __setattr__ suceeded!"
|
||||
raise TestFailed, "Carlo Verre __setattr__ suceeded!"
|
||||
try:
|
||||
object.__delattr__(str, "lower")
|
||||
except TypeError:
|
||||
pass
|
||||
else:
|
||||
raise TestFailed, "Verre Carlo __delattr__ succeeded!"
|
||||
raise TestFailed, "Carlo Verre __delattr__ succeeded!"
|
||||
|
||||
|
||||
def test_main():
|
||||
|
@ -3945,7 +3945,7 @@ def test_main():
|
|||
meth_class_get()
|
||||
isinst_isclass()
|
||||
proxysuper()
|
||||
verrecarlo()
|
||||
carloverre()
|
||||
|
||||
if verbose: print "All OK"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue