pitrou commented on code in PR #40165:
URL: https://github.com/apache/arrow/pull/40165#discussion_r1496350275


##########
python/pyarrow/tests/test_schema.py:
##########
@@ -681,7 +681,8 @@ def test_schema_sizeof():
         pa.field('bar', pa.string()),
     ])
 
-    assert sys.getsizeof(schema) > 30
+    # Note: pa.schema is twice as large on 64-bit systems
+    assert sys.getsizeof(schema) > 30 if sys.maxsize > 2**32 else 15

Review Comment:
   Hmm, let's avoid any ambiguities due to operator precedence here:
   ```suggestion
       assert sys.getsizeof(schema) > (30 if sys.maxsize > 2**32 else 15)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to