From e254264cc5626043f6a3f65a1cb6ccc8733f3794 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 9 Jul 2024 15:09:39 -0700 Subject: [PATCH] Restore original test_class_sh_disowning.py from smart_holder branch. --- tests/test_class_sh_disowning.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_class_sh_disowning.py b/tests/test_class_sh_disowning.py index 3219d925f8..52568203e9 100644 --- a/tests/test_class_sh_disowning.py +++ b/tests/test_class_sh_disowning.py @@ -54,10 +54,8 @@ def test_mixed(): # Either obj1b or obj2b was disowned in the expected failed m.mixed() calls above, but not # both. is_disowned_results = (is_disowned(obj1b), is_disowned(obj2b)) - # BAKEIN_WIP: Why is the behavior different? - assert is_disowned_results.count(True) == 0 - # BAKEIN_WIP: Cleanup condition: - if first_pass and is_disowned_results.count(True): + assert is_disowned_results.count(True) == 1 + if first_pass: first_pass = False print( "\nC++ function argument %d is evaluated first."