Skip to content

Commit af9b355

Browse files
committed
adapt unittests' ConstructorStats
1 parent 673095c commit af9b355

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_methods_and_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def test_methods_and_attributes():
5858
assert cstats.alive() == 0
5959
assert cstats.values() == ["32"]
6060
assert cstats.default_constructions == 1
61-
assert cstats.copy_constructions == 2
62-
assert cstats.move_constructions >= 2
61+
assert cstats.copy_constructions == 1
62+
assert cstats.move_constructions >= 3
6363
assert cstats.copy_assignments == 0
6464
assert cstats.move_assignments == 0
6565

tests/test_virtual_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ def get_movable(self, a, b):
202202
assert nc_stats.values() == ['4', '9', '9', '9']
203203
assert mv_stats.values() == ['4', '5', '7', '7']
204204
assert nc_stats.copy_constructions == 0
205-
assert mv_stats.copy_constructions == 1
205+
assert mv_stats.copy_constructions == 0
206206
assert nc_stats.move_constructions >= 0
207-
assert mv_stats.move_constructions >= 0
207+
assert mv_stats.move_constructions >= 1
208208

209209

210210
def test_dispatch_issue(msg):

0 commit comments

Comments
 (0)