Index: python-gsd/gsd/test/test_largefile.py
===================================================================
--- python-gsd.orig/gsd/test/test_largefile.py	2024-07-05 14:21:21.766459697 +0200
+++ python-gsd/gsd/test/test_largefile.py	2024-07-05 14:22:13.023370044 +0200
@@ -4,6 +4,7 @@
 """Test the gsd.fl API with large files."""
 
 import gc
+import platform
 
 import numpy
 import pytest
@@ -17,7 +18,17 @@
     """Test data chunks and files larger than 2 GB."""
     gc.collect()
 
-    data = numpy.linspace(0, N, num=N, endpoint=False, dtype=numpy.uint32)
+    try:
+        data = numpy.linspace(0, N, num=N, endpoint=False, dtype=numpy.uint32)
+    except ValueError as ve:
+        if platform.architecture()[0] == '64bit':
+            raise
+        else:
+            if N <= 2**27:
+                raise
+            else:
+                # ignore ValueError for largest values of N on 32-bit systems
+                return True
     with gsd.fl.open(
         name=tmp_path / 'test_large_N.gsd',
         mode='x',
