diff --git a/tests/test_methods_and_attributes.py b/tests/test_methods_and_attributes.py index cf9a74714ab..a42d425a957 100644 --- a/tests/test_methods_and_attributes.py +++ b/tests/test_methods_and_attributes.py @@ -58,8 +58,8 @@ def test_methods_and_attributes(): assert cstats.alive() == 0 assert cstats.values() == ["32"] assert cstats.default_constructions == 1 - assert cstats.copy_constructions == 2 - assert cstats.move_constructions >= 2 + assert cstats.copy_constructions == 1 + assert cstats.move_constructions >= 3 assert cstats.copy_assignments == 0 assert cstats.move_assignments == 0 diff --git a/tests/test_virtual_functions.py b/tests/test_virtual_functions.py index 5ce9abd3557..d0219b74839 100644 --- a/tests/test_virtual_functions.py +++ b/tests/test_virtual_functions.py @@ -202,9 +202,9 @@ def get_movable(self, a, b): assert nc_stats.values() == ['4', '9', '9', '9'] assert mv_stats.values() == ['4', '5', '7', '7'] assert nc_stats.copy_constructions == 0 - assert mv_stats.copy_constructions == 1 + assert mv_stats.copy_constructions == 0 assert nc_stats.move_constructions >= 0 - assert mv_stats.move_constructions >= 0 + assert mv_stats.move_constructions >= 1 def test_dispatch_issue(msg):