This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new bcbc707941 GH-38057: [Python][CI] Fix flaky hypothesis tests (#38058)
bcbc707941 is described below

commit bcbc70794101bff37ff9d02259bdc6533c91850a
Author: Dane Pitkin <[email protected]>
AuthorDate: Thu Oct 5 20:07:18 2023 -0400

    GH-38057: [Python][CI] Fix flaky hypothesis tests (#38058)
    
    ### Rationale for this change
    
    Some hypothesis tests are consistently flaky due to taking too long to 
generate examples. "Too long" is ~2 seconds so let's just suppress the 
warnings. It is suppressed only for a small number of tests.
    
    ### What changes are included in this PR?
    
    * Suppress hypothesis warnings for test data generation being too slow (> 2 
seconds).
    
    ### Are these changes tested?
    
    Will test the hypothesis CI job here.
    
    ### Are there any user-facing changes?
    
    No
    * Closes: #38057
    
    Authored-by: Dane Pitkin <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 python/pyarrow/tests/test_array.py | 1 +
 python/pyarrow/tests/test_types.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/python/pyarrow/tests/test_array.py 
b/python/pyarrow/tests/test_array.py
index fca094b519..cd565a72bc 100644
--- a/python/pyarrow/tests/test_array.py
+++ b/python/pyarrow/tests/test_array.py
@@ -2020,6 +2020,7 @@ def test_array_pickle_dictionary(pickle_module):
         assert array.equals(result)
 
 
[email protected](suppress_health_check=(h.HealthCheck.too_slow,))
 @h.given(
     past.arrays(
         past.all_types,
diff --git a/python/pyarrow/tests/test_types.py 
b/python/pyarrow/tests/test_types.py
index f3b6001003..660765f336 100644
--- a/python/pyarrow/tests/test_types.py
+++ b/python/pyarrow/tests/test_types.py
@@ -1184,6 +1184,7 @@ def test_is_boolean_value():
     assert pa.types.is_boolean_value(np.bool_(False))
 
 
[email protected](suppress_health_check=(h.HealthCheck.too_slow,))
 @h.given(
     past.all_types |
     past.all_fields |

Reply via email to