Update buggy_script_2.py

@biobootloader, now fails due to singleton modification of attributes
pull/9/head
Julian Henry 2023-04-20 07:01:59 -05:00 zatwierdzone przez GitHub
rodzic 31319dd273
commit f46701623f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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()