Skip to content

Commit 261dcc5

Browse files
committed
test more medium-size integers in all test_long_as*
1 parent f0691c5 commit 261dcc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_capi/test_long.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ def check_long_asint(self, func, min_val, max_val, *,
168168
mask=False,
169169
negative_value_error=OverflowError):
170170
# round trip (object -> C integer -> object)
171-
values = (0, 1, 1234, max_val)
171+
values = (0, 1, 512, 1234, max_val)
172172
if min_val < 0:
173-
values += (-1, min_val)
173+
values += (-1, -512, -1234, min_val)
174174
for value in values:
175175
with self.subTest(value=value):
176176
self.assertEqual(func(value), value)

0 commit comments

Comments
 (0)