Skip to content

Commit 42cbf00

Browse files
committed
Use better constant for out of memory test case
1 parent 8446b71 commit 42cbf00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test__getdents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
2+
import sys
33
from unittest.mock import ANY
44

55
from pytest import fixture, raises
@@ -47,7 +47,7 @@ def test_small_buffer(fixt_dir):
4747

4848
def test_malloc_fail(fixt_dir):
4949
with raises(MemoryError):
50-
getdents_raw(fixt_dir, 1 << 62)
50+
getdents_raw(fixt_dir, sys.maxsize)
5151

5252

5353
def test_getdents_raw(fixt_dir):

0 commit comments

Comments
 (0)