kopia lustrzana https://github.com/biobootloader/wolverine
Update buggy_script_2.py
@biobootloader, now fails due to singleton modification of attributespull/9/head
rodzic
31319dd273
commit
f46701623f
|
@ -20,7 +20,9 @@ def return_2():
|
|||
new_singleton = SingletonClass()
|
||||
singleton.a = 1
|
||||
new_singleton.a = 2
|
||||
return singleton.a + singleton.a
|
||||
would_be_2 = (singleton.a + singleton.a)
|
||||
assert would_be_2 == 2
|
||||
return would_be_2
|
||||
|
||||
if __name__=="__main__":
|
||||
fire.Fire()
|
||||
fire.Fire()
|
||||
|
|
Ładowanie…
Reference in New Issue