TomTJarosz commented on code in PR #39314:
URL: https://github.com/apache/arrow/pull/39314#discussion_r1433153177
##########
python/pyarrow/tests/test_pandas.py:
##########
@@ -4996,3 +4997,7 @@ def roundtrip(df, schema=None):
schema = pa.schema([("maps", map_type)])
roundtrip(pd.DataFrame({"maps": [map_of_los, map_of_los, map_of_los]}),
schema=schema)
+
+def test_is_data_frame_race_condition():
+ # See https://github.com/apache/arrow/issues/39313
+ test_util.invoke_script('arrow_39313.py')
Review Comment:
Note that the time window of this race condition starts with the first call
of `_check_import` within a python process, and ends when that first call
returns. Concurrent calls to `_check_import` in this time window can cause the
race condition.
Give arbitrary pytest/conftest code could call `_check_import`, we use
`invoke_script` to start a new subprocess, where we can be sure our test (which
reproduces the issue) call `_check_import` for the first time in that process.
--
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]