Skip to content

Commit 48e6198

Browse files
committed
Only test size with Python 3.7
1 parent d8a39f7 commit 48e6198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/other/test_smtlibv2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ def check(ty: Type, pickle_size=None, sizeof=None, **kwargs):
127127
not hasattr(x, "__dict__"),
128128
)
129129
"""
130-
self.assertEqual(len(pickle_dumps(x)), pickle_size)
131130
if sys.version_info[1] == 6: # Python 3.6
132131
self.assertEqual(sys.getsizeof(x), sizeof)
133132
elif sys.version_info[1] == 7: # Python 3.7
133+
self.assertEqual(len(pickle_dumps(x)), pickle_size)
134134
self.assertEqual(sys.getsizeof(x), sizeof + 8)
135135
elif sys.version_info[1] >= 8: # Python 3.8+
136136
self.assertEqual(sys.getsizeof(x), sizeof - 8)

0 commit comments

Comments
 (0)