File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ def check_large_zip(memoryerror_raised):
580
580
memoryerror_raised .value = False
581
581
try :
582
582
# The test takes at least 6GB of memory, writes a file larger
583
- # than 4GB
583
+ # than 4GB. This tests the ``allowZip64`` kwarg to ``zipfile``
584
584
test_data = np .asarray ([np .random .rand (
585
585
np .random .randint (50 ,100 ),4 )
586
586
for i in range (800000 )], dtype = object )
@@ -599,6 +599,9 @@ def check_large_zip(memoryerror_raised):
599
599
p .join ()
600
600
if memoryerror_raised .value :
601
601
raise MemoryError ("Child process raised a MemoryError exception" )
602
+ # -9 indicates a SIGKILL, probably an OOM.
603
+ if p .exitcode == - 9 :
604
+ pytest .xfail ("subprocess got a SIGKILL, apparently free memory was not sufficient" )
602
605
assert p .exitcode == 0
603
606
604
607
class LoadTxtBase :
You can’t perform that action at this time.
0 commit comments