From 9642f29f399983da7dc6a9192be027a4f97b30eb Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 29 Jul 2025 23:42:36 +0200 Subject: [PATCH] Update tests/test_utils_typecast.py --- tests/test_utils_typecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_utils_typecast.py b/tests/test_utils_typecast.py index b4054ba3b..b98c84d93 100644 --- a/tests/test_utils_typecast.py +++ b/tests/test_utils_typecast.py @@ -31,7 +31,7 @@ def test_downcast_success(): def test_upcast_success(): b = Bulldog() assert b.snore() == "woooooof" - assert not hasattr(b, "speak") + assert b.speak() == "woof" #from Dog upcast(b, Dog) assert b.speak() == "woof" assert not hasattr(b, "snore")