Skip to content

Commit 1a77ba0

Browse files
committed
Fix size tests.
1 parent 55b02b2 commit 1a77ba0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_pointer.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ class Tracked:
4848
pass
4949

5050
x = "hello world"
51-
assert to_ptr(x).size == sys.getsizeof(x)
52-
assert to_ptr(Tracked()).size == sys.getsizeof(Tracked())
51+
assert to_ptr(x).size() == sys.getsizeof(x)
52+
53+
# This check is an implementation detail.
54+
# If this doesn't work in the future, feel free to remove it.
55+
assert to_ptr(Tracked()).size() == sys.getsizeof(Tracked())
5356

5457

5558
def test_move_object():

0 commit comments

Comments
 (0)