HypothesisWorks / hypothesis

Hypothesis is a powerful, flexible, and easy to use library for property-based testing.
https://hypothesis.works
Other
7.56k stars 587 forks source link

6.57.1: pytest is failing with `INTERNALERROR` #3508

Closed kloczek closed 1 year ago

kloczek commented 1 year ago

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

Here is pytest output:

```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-hypothesis-6.57.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-hypothesis-6.57.1-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -p no:randomly -p no:twisted -p no:trio tests -k ' not test_should_have_correct_ordering and not test_can_disallow_prefixes and not test_can_generate_non_utc and not test_can_generate_prefixes_if_allowed_and_available and not test_datetimes_stay_within_naive_bounds and not test_utc_is_minimal' =========================================================================== test session starts ============================================================================ platform linux -- Python 3.8.15, pytest-7.1.3, pluggy-1.0.0 rootdir: /home/tkloczko/rpmbuild/BUILD/hypothesis-hypothesis-python-6.57.1, configfile: pytest.ini plugins: hypothesis-6.57.1, asyncio-0.20.2, xdist-3.0.2 asyncio: mode=auto collected 5367 items INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 268, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 321, in _main INTERNALERROR> config.hook.pytest_collection(session=session) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__ INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result INTERNALERROR> raise ex[1].with_traceback(ex[2]) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 332, in pytest_collection INTERNALERROR> session.perform_collect() INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 660, in perform_collect INTERNALERROR> hook.pytest_collection_modifyitems( INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__ INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result INTERNALERROR> raise ex[1].with_traceback(ex[2]) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py", line 368, in pytest_collection_modifyitems INTERNALERROR> and _hypothesis_test_wraps_coroutine(function) INTERNALERROR> File "/usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py", line 374, in _hypothesis_test_wraps_coroutine INTERNALERROR> return _is_coroutine(function.hypothesis.inner_test) INTERNALERROR> AttributeError: 'function' object has no attribute 'hypothesis' ========================================================================== no tests ran in 8.36s =========================================================================== ```

Here is list of installed modules in build env

```console Package Version ----------------------------- ----------------- alabaster 0.7.12 appdirs 1.4.4 asgiref 3.4.1 async-timeout 4.0.2 attrs 22.1.0 Babel 2.11.0 backports.zoneinfo 0.2.1 black 22.10.0 Brlapi 0.8.3 build 0.9.0 charset-normalizer 3.0.0 click 8.1.3 contourpy 1.0.6 coverage 6.5.0 cssselect 1.1.0 cycler 0.11.0 Deprecated 1.2.13 distro 1.8.0 Django 4.0.4 dnspython 2.2.1 docutils 0.18.1 dpcontracts 0.6.0 exceptiongroup 1.0.0 execnet 1.9.0 extras 1.0.0 fakeredis 1.10.1 fixtures 4.0.0 fonttools 4.38.0 gpg 1.17.1-unknown idna 3.4 imagesize 1.4.1 importlib-metadata 5.0.0 iniconfig 1.1.1 Jinja2 3.1.1 kiwisolver 1.4.4 lark 1.1.4 libcomps 0.1.19 libcst 0.4.9 louis 3.23.0 lxml 4.9.1 MarkupSafe 2.1.1 matplotlib 3.6.2 mock 4.0.3 multipledispatch 0.6.0 mypy-extensions 0.4.3 numpy 1.23.1 olefile 0.46 packaging 21.3 pandas 1.4.2 pathspec 0.10.1 pbr 5.9.0 pep517 0.13.0 pexpect 4.8.0 Pillow 9.3.0 pip 22.2.2 platformdirs 2.5.2 pluggy 1.0.0 ptyprocess 0.7.0 py 1.11.0 Pygments 2.13.0 PyGObject 3.42.2 pyparsing 3.0.9 pytest 7.1.3 pytest-asyncio 0.20.2 pytest-xdist 3.0.2 python-dateutil 2.8.2 pytz 2022.4 PyYAML 6.0 redis 4.3.4 requests 2.28.1 rpm 4.17.0 scour 0.38.2 setuptools 65.5.1 six 1.16.0 snowballstemmer 2.2.0 sortedcontainers 2.4.0 Sphinx 5.3.0 sphinx-hoverxref 1.0.1 sphinx-rtd-theme 1.1.0 sphinx-selective-exclude 1.0.3 sphinxcontrib-applehelp 1.0.2.dev20220730 sphinxcontrib-devhelp 1.0.2.dev20220730 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1.dev20220730 sphinxcontrib-qthelp 1.0.3.dev20220730 sphinxcontrib-serializinghtml 1.1.5 sqlparse 0.4.2 strategies 0.2.3 testtools 2.5.0 tomli 2.0.1 toolz 0.12.0 typing_extensions 4.3.0 typing-inspect 0.7.1 urllib3 1.26.12 wheel 0.37.1 wrapt 1.14.1 zipp 3.9.0 ```
Zac-HD commented 1 year ago
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py", line 368, in pytest_collection_modifyitems
INTERNALERROR>     and _hypothesis_test_wraps_coroutine(function)
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py", line 374, in _hypothesis_test_wraps_coroutine
INTERNALERROR>     return _is_coroutine(function.hypothesis.inner_test)
INTERNALERROR> AttributeError: 'function' object has no attribute 'hypothesis'

Looks like a pytest-asyncio bug to me; try with pytest -p no:asyncio too?

kloczek commented 1 year ago

Good hint. I've removed pytest-asyncio from build env and patch adding asyncio_mode = auto and suddenly after that I was able to run pyterst 100% cleanly

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-hypothesis-6.57.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-hypothesis-6.57.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -p no:randomly -p no:twisted -p no:trio tests
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.15, pytest-7.1.3, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/hypothesis-hypothesis-python-6.57.1, configfile: pytest.ini
plugins: hypothesis-6.57.1, xdist-3.0.2
collected 5367 items

tests/array_api/test_argument_validation.py .................................................................................................                        [  1%]
tests/array_api/test_arrays.py ............................................................................xx...............                                         [  3%]
tests/array_api/test_from_dtype.py ................................................................                                                                  [  4%]
tests/array_api/test_indices.py ...........                                                                                                                          [  4%]
tests/array_api/test_partial_adoptors.py ....................                                                                                                        [  5%]
tests/array_api/test_pretty.py ................................                                                                                                      [  5%]
tests/array_api/test_scalar_dtypes.py ...........................................................                                                                    [  7%]
tests/array_api/test_strategies_namespace.py .....                                                                                                                   [  7%]
tests/codemods/test_codemod_cli.py ...                                                                                                                               [  7%]
tests/codemods/test_codemods.py .........                                                                                                                            [  7%]
tests/conjecture/test_choice_tree.py ..........                                                                                                                      [  7%]
tests/conjecture/test_data_tree.py ............................                                                                                                      [  8%]
tests/conjecture/test_dfa.py ........................                                                                                                                [  8%]
tests/conjecture/test_engine.py ...........................................................................................................................          [ 10%]
tests/conjecture/test_float_encoding.py ..............................................................................................                               [ 12%]
tests/conjecture/test_intlist.py .....                                                                                                                               [ 12%]
tests/conjecture/test_junkdrawer.py .....................                                                                                                            [ 13%]
tests/conjecture/test_lstar.py ............                                                                                                                          [ 13%]
tests/conjecture/test_minimizer.py .......                                                                                                                           [ 13%]
tests/conjecture/test_optimiser.py ..............                                                                                                                    [ 13%]
tests/conjecture/test_order_shrinking.py ....                                                                                                                        [ 13%]
tests/conjecture/test_pareto.py .........                                                                                                                            [ 13%]
tests/conjecture/test_shrinker.py ..................................                                                                                                 [ 14%]
tests/conjecture/test_shrinking_dfas.py ..........                                                                                                                   [ 14%]
tests/conjecture/test_shrinking_interface.py ...                                                                                                                     [ 14%]
tests/conjecture/test_test_data.py ...........................................                                                                                       [ 15%]
tests/conjecture/test_utils.py ......................................                                                                                                [ 16%]
tests/cover/test_annotations.py ..................                                                                                                                   [ 16%]
tests/cover/test_arbitrary_data.py ..........                                                                                                                        [ 16%]
tests/cover/test_async_def.py .                                                                                                                                      [ 16%]
tests/cover/test_asyncio.py ..                                                                                                                                       [ 16%]
tests/cover/test_attrs_inference.py .....                                                                                                                            [ 16%]
tests/cover/test_cache_implementation.py .....................                                                                                                       [ 17%]
tests/cover/test_caching.py .......                                                                                                                                  [ 17%]
tests/cover/test_cathetus.py ......................................................................                                                                  [ 18%]
tests/cover/test_charmap.py .................                                                                                                                        [ 19%]
tests/cover/test_compat.py .................                                                                                                                         [ 19%]
tests/cover/test_complex_numbers.py ....................                                                                                                             [ 19%]
tests/cover/test_composite.py ..............                                                                                                                         [ 20%]
tests/cover/test_composite_kwonlyargs.py .                                                                                                                           [ 20%]
tests/cover/test_control.py ...............                                                                                                                          [ 20%]
tests/cover/test_core.py ............                                                                                                                                [ 20%]
tests/cover/test_custom_reprs.py ......                                                                                                                              [ 20%]
tests/cover/test_database_backend.py ........................                                                                                                        [ 21%]
tests/cover/test_datetimes.py ......................................                                                                                                 [ 21%]
tests/cover/test_deadline.py ............                                                                                                                            [ 22%]
tests/cover/test_debug_information.py .                                                                                                                              [ 22%]
tests/cover/test_deferred_strategies.py .................                                                                                                            [ 22%]
tests/cover/test_detection.py .....                                                                                                                                  [ 22%]
tests/cover/test_direct_strategies.py .............................................................................................................................. [ 24%]
........................................................................................................................................                             [ 27%]
tests/cover/test_draw_example.py ..........................................................................................                                          [ 29%]
tests/cover/test_error_in_draw.py ..                                                                                                                                 [ 29%]
tests/cover/test_escalation.py ........                                                                                                                              [ 29%]
tests/cover/test_example.py .........                                                                                                                                [ 29%]
tests/cover/test_executors.py ......                                                                                                                                 [ 29%]
tests/cover/test_explicit_examples.py ............................                                                                                                   [ 29%]
tests/cover/test_falsifying_example_output.py ....                                                                                                                   [ 30%]
tests/cover/test_feature_flags.py .......                                                                                                                            [ 30%]
tests/cover/test_filestorage.py ....                                                                                                                                 [ 30%]
tests/cover/test_filter_rewriting.py ............................................................................................................................... [ 32%]
................                                                                                                                                                     [ 32%]
tests/cover/test_filtered_strategy.py ....                                                                                                                           [ 33%]
tests/cover/test_find.py .                                                                                                                                           [ 33%]
tests/cover/test_flakiness.py ....                                                                                                                                   [ 33%]
tests/cover/test_float_nastiness.py ............................................................                                                                     [ 34%]
tests/cover/test_float_utils.py .........                                                                                                                            [ 34%]
tests/cover/test_functions.py ..................                                                                                                                     [ 34%]
tests/cover/test_fuzz_one_input.py .............                                                                                                                     [ 34%]
tests/cover/test_given_error_conditions.py ..........                                                                                                                [ 35%]
tests/cover/test_health_checks.py .....................                                                                                                              [ 35%]
tests/cover/test_internal_helpers.py .                                                                                                                               [ 35%]
tests/cover/test_intervalset.py .......                                                                                                                              [ 35%]
tests/cover/test_lambda_formatting.py .....................                                                                                                          [ 36%]
tests/cover/test_lazy_import.py .                                                                                                                                    [ 36%]
tests/cover/test_lookup.py ......................................................................................................................................... [ 38%]
.................................................................................................................................................................... [ 41%]
..................................................................................................................................................                   [ 44%]
tests/cover/test_lookup_py37.py xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                                                                                   [ 45%]
tests/cover/test_lookup_py38.py ..........x..x.............                                                                                                          [ 45%]
tests/cover/test_map.py ...                                                                                                                                          [ 45%]
tests/cover/test_mock.py ...                                                                                                                                         [ 45%]
tests/cover/test_nothing.py ............                                                                                                                             [ 45%]
tests/cover/test_numerics.py ...........................                                                                                                             [ 46%]
tests/cover/test_one_of.py .....                                                                                                                                     [ 46%]
tests/cover/test_permutations.py ....                                                                                                                                [ 46%]
tests/cover/test_phases.py ..s......                                                                                                                                 [ 46%]
tests/cover/test_posonly_args_py38.py ...                                                                                                                            [ 46%]
tests/cover/test_pretty.py ................................................                                                                                          [ 47%]
tests/cover/test_provisional_strategies.py .....................................................                                                                     [ 48%]
tests/cover/test_random_module.py ...........                                                                                                                        [ 48%]
tests/cover/test_randoms.py .............................................s......                                                                                     [ 49%]
tests/cover/test_recursive.py .......                                                                                                                                [ 49%]
tests/cover/test_reflection.py ............................................................................                                                          [ 51%]
tests/cover/test_regex.py .......................................................................................................................................... [ 53%]
..............................                                                                                                                                       [ 54%]
tests/cover/test_regressions.py ........                                                                                                                             [ 54%]
tests/cover/test_reporting.py .......                                                                                                                                [ 54%]
tests/cover/test_reproduce_failure.py ..............                                                                                                                 [ 55%]
tests/cover/test_runner_strategy.py .......                                                                                                                          [ 55%]
tests/cover/test_sampled_from.py ......................                                                                                                              [ 55%]
tests/cover/test_searchstrategy.py .........                                                                                                                         [ 55%]
tests/cover/test_seed_printing.py ..........                                                                                                                         [ 55%]
tests/cover/test_settings.py .................................................................                                                                       [ 57%]
tests/cover/test_setup_teardown.py ........                                                                                                                          [ 57%]
tests/cover/test_shrink_budgeting.py ...                                                                                                                             [ 57%]
tests/cover/test_simple_characters.py ...............                                                                                                                [ 57%]
tests/cover/test_simple_collections.py ....................................................................                                                          [ 58%]
tests/cover/test_simple_strings.py .................                                                                                                                 [ 59%]
tests/cover/test_slices.py .......................................................                                                                                   [ 60%]
tests/cover/test_slippage.py ..............                                                                                                                          [ 60%]
tests/cover/test_stateful.py ......................................................................                                                                  [ 61%]
tests/cover/test_statistical_events.py ..................                                                                                                            [ 62%]
tests/cover/test_subnormal_floats.py ........................                                                                                                        [ 62%]
tests/cover/test_targeting.py ...........                                                                                                                            [ 62%]
tests/cover/test_testdecorators.py ......................................................                                                                            [ 63%]
tests/cover/test_text.py .                                                                                                                                           [ 63%]
tests/cover/test_traceback_elision.py ..                                                                                                                             [ 63%]
tests/cover/test_type_lookup.py .................................................................................................................................... [ 66%]
..................                                                                                                                                                   [ 66%]
tests/cover/test_type_lookup_forward_ref.py ........                                                                                                                 [ 66%]
tests/cover/test_unicode_identifiers.py ....                                                                                                                         [ 66%]
tests/cover/test_unittest.py ....                                                                                                                                    [ 66%]
tests/cover/test_uuids.py ...                                                                                                                                        [ 67%]
tests/cover/test_validation.py ....................................s                                                                                                 [ 67%]
tests/cover/test_verbosity.py ........                                                                                                                               [ 67%]
tests/datetime/test_dateutil_timezones.py ..............                                                                                                             [ 68%]
tests/datetime/test_pytz_timezones.py .................                                                                                                              [ 68%]
tests/datetime/test_zoneinfo_timezones.py .......                                                                                                                    [ 68%]
tests/ghostwriter/test_expected_output.py .................................                                                                                          [ 69%]
tests/ghostwriter/test_ghostwriter.py .............................................................................................................                  [ 71%]
tests/ghostwriter/test_ghostwriter_cli.py ....................                                                                                                       [ 71%]
tests/nocover/test_argument_validation.py .......................................................................................................................    [ 73%]
tests/nocover/test_bad_repr.py ...                                                                                                                                   [ 73%]
tests/nocover/test_baseexception.py ..................                                                                                                               [ 74%]
tests/nocover/test_boundary_exploration.py .                                                                                                                         [ 74%]
tests/nocover/test_build_signature.py ......                                                                                                                         [ 74%]
tests/nocover/test_cache_implementation.py .                                                                                                                         [ 74%]
tests/nocover/test_cacheable.py ..........                                                                                                                           [ 74%]
tests/nocover/test_characters.py ..                                                                                                                                  [ 74%]
tests/nocover/test_collective_minimization.py .............................................                                                                          [ 75%]
tests/nocover/test_compat.py .....                                                                                                                                   [ 75%]
tests/nocover/test_completion.py .                                                                                                                                   [ 75%]
tests/nocover/test_conjecture_engine.py ......                                                                                                                       [ 75%]
tests/nocover/test_conjecture_int_list.py .                                                                                                                          [ 75%]
tests/nocover/test_conjecture_utils.py ...                                                                                                                           [ 75%]
tests/nocover/test_conventions.py .                                                                                                                                  [ 75%]
tests/nocover/test_database_agreement.py .                                                                                                                           [ 75%]
tests/nocover/test_database_usage.py ......                                                                                                                          [ 75%]
tests/nocover/test_deferred_errors.py ......                                                                                                                         [ 75%]
tests/nocover/test_drypython_returns.py ....................................................                                                                         [ 76%]
tests/nocover/test_duplication.py ........                                                                                                                           [ 77%]
tests/nocover/test_dynamic_variable.py ..                                                                                                                            [ 77%]
tests/nocover/test_emails.py .                                                                                                                                       [ 77%]
tests/nocover/test_eval_as_source.py ...                                                                                                                             [ 77%]
tests/nocover/test_explore_arbitrary_languages.py .s                                                                                                                 [ 77%]
tests/nocover/test_fancy_repr.py ......                                                                                                                              [ 77%]
tests/nocover/test_filtering.py ..........                                                                                                                           [ 77%]
tests/nocover/test_find.py ......                                                                                                                                    [ 77%]
tests/nocover/test_fixtures.py .                                                                                                                                     [ 77%]
tests/nocover/test_flatmap.py ........................                                                                                                               [ 78%]
tests/nocover/test_floating.py .................                                                                                                                     [ 78%]
tests/nocover/test_from_type_recipe.py .                                                                                                                             [ 78%]
tests/nocover/test_given_error_conditions.py .                                                                                                                       [ 78%]
tests/nocover/test_given_reuse.py ...                                                                                                                                [ 78%]
tests/nocover/test_imports.py .                                                                                                                                      [ 78%]
tests/nocover/test_integer_ranges.py .......                                                                                                                         [ 78%]
tests/nocover/test_interesting_origin.py ...                                                                                                                         [ 78%]
tests/nocover/test_labels.py ......                                                                                                                                  [ 78%]
tests/nocover/test_large_examples.py .                                                                                                                               [ 78%]
tests/nocover/test_limits.py .                                                                                                                                       [ 78%]
tests/nocover/test_lstar.py .                                                                                                                                        [ 78%]
tests/nocover/test_modify_inner_test.py .......                                                                                                                      [ 79%]
tests/nocover/test_nesting.py .                                                                                                                                      [ 79%]
tests/nocover/test_pretty_repr.py ....                                                                                                                               [ 79%]
tests/nocover/test_randomization.py ..                                                                                                                               [ 79%]
tests/nocover/test_recursive.py ........                                                                                                                             [ 79%]
tests/nocover/test_regex.py ....                                                                                                                                     [ 79%]
tests/nocover/test_regressions.py ..                                                                                                                                 [ 79%]
tests/nocover/test_reusable_values.py ........                                                                                                                       [ 79%]
tests/nocover/test_sampled_from.py .........                                                                                                                         [ 79%]
tests/nocover/test_scrutineer.py .....                                                                                                                               [ 79%]
tests/nocover/test_sets.py ...                                                                                                                                       [ 79%]
tests/nocover/test_sharing.py .......                                                                                                                                [ 80%]
tests/nocover/test_simple_numbers.py ............................................................................................................................... [ 82%]
...........................................................                                                                                                          [ 83%]
tests/nocover/test_simple_strings.py .                                                                                                                               [ 83%]
tests/nocover/test_skipping.py ..                                                                                                                                    [ 83%]
tests/nocover/test_stateful.py ......                                                                                                                                [ 83%]
tests/nocover/test_strategy_state.py .                                                                                                                               [ 83%]
tests/nocover/test_subnormal_floats.py ..............                                                                                                                [ 83%]
tests/nocover/test_targeting.py ......                                                                                                                               [ 83%]
tests/nocover/test_testdecorators.py ...                                                                                                                             [ 83%]
tests/nocover/test_threading.py .                                                                                                                                    [ 83%]
tests/nocover/test_type_lookup.py ........................................s                                                                                          [ 84%]
tests/nocover/test_type_lookup_forward_ref.py ..                                                                                                                     [ 84%]
tests/nocover/test_type_lookup_future_annotations.py ..                                                                                                              [ 84%]
tests/nocover/test_unusual_settings_configs.py ..                                                                                                                    [ 84%]
tests/nocover/test_uuids.py .......                                                                                                                                  [ 84%]
tests/numpy/test_argument_validation.py ...............................................................................................................              [ 87%]
tests/numpy/test_deprecation.py ...                                                                                                                                  [ 87%]
tests/numpy/test_fill_values.py .....                                                                                                                                [ 87%]
tests/numpy/test_floor_ceil.py .........                                                                                                                             [ 87%]
tests/numpy/test_from_dtype.py ..........................................................                                                                            [ 88%]
tests/numpy/test_gen_data.py ......................................................................................................                                  [ 90%]
tests/numpy/test_gufunc.py ...........................                                                                                                               [ 90%]
tests/numpy/test_import.py ..                                                                                                                                        [ 90%]
tests/numpy/test_narrow_floats.py ...............                                                                                                                    [ 91%]
tests/numpy/test_randomness.py .                                                                                                                                     [ 91%]
tests/numpy/test_sampled_from.py ..                                                                                                                                  [ 91%]
tests/pandas/test_argument_validation.py ............................................                                                                                [ 92%]
tests/pandas/test_data_frame.py .................ss                                                                                                                  [ 92%]
tests/pandas/test_indexes.py .........                                                                                                                               [ 92%]
tests/pandas/test_series.py ........                                                                                                                                 [ 92%]
tests/pytest/test_capture.py .....                                                                                                                                   [ 92%]
tests/pytest/test_checks.py .                                                                                                                                        [ 92%]
tests/pytest/test_compat.py ...                                                                                                                                      [ 92%]
tests/pytest/test_doctest.py .                                                                                                                                       [ 92%]
tests/pytest/test_fixtures.py ...........                                                                                                                            [ 93%]
tests/pytest/test_junit.py ..                                                                                                                                        [ 93%]
tests/pytest/test_mark.py ..                                                                                                                                         [ 93%]
tests/pytest/test_parametrized_db_keys.py .                                                                                                                          [ 93%]
tests/pytest/test_profiles.py ...                                                                                                                                    [ 93%]
tests/pytest/test_pytest_detection.py ...                                                                                                                            [ 93%]
tests/pytest/test_reporting.py .....                                                                                                                                 [ 93%]
tests/pytest/test_runs.py ..                                                                                                                                         [ 93%]
tests/pytest/test_seeding.py ....                                                                                                                                    [ 93%]
tests/pytest/test_skipping.py ..                                                                                                                                     [ 93%]
tests/pytest/test_statistics.py .......                                                                                                                              [ 93%]
tests/quality/test_deferred_strategies.py ...                                                                                                                        [ 93%]
tests/quality/test_discovery_ability.py ................................................................................                                             [ 95%]
tests/quality/test_float_shrinking.py ........                                                                                                                       [ 95%]
tests/quality/test_integers.py ..                                                                                                                                    [ 95%]
tests/quality/test_normalization.py ...................................                                                                                              [ 96%]
tests/quality/test_poisoned_lists.py ................................................                                                                                [ 96%]
tests/quality/test_poisoned_trees.py ......                                                                                                                          [ 97%]
tests/quality/test_shrink_quality.py ......................................................................                                                          [ 98%]
tests/quality/test_shrinking_order.py .                                                                                                                              [ 98%]
tests/quality/test_zig_zagging.py .                                                                                                                                  [ 98%]
tests/redis/test_redis_exampledatabase.py .....                                                                                                                      [ 98%]
tests/typing_extensions/test_backported_types.py ........................................................................

=========================================================================== slowest 20 durations ===========================================================================
117.78s call     hypothesis-python/tests/nocover/test_database_usage.py::test_respects_max_examples_in_database_usage
110.80s call     hypothesis-python/tests/nocover/test_stateful.py::test_bad_machines_fail[CanSwarm]
58.85s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_minimize_multiple_elements_in_silly_large_int_range_min_is_not_dupe
53.11s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_minimize_multiple_elements_in_silly_large_int_range
43.05s call     hypothesis-python/tests/nocover/test_database_usage.py::test_clears_out_database_as_things_get_boring
28.55s call     hypothesis-python/tests/cover/test_stateful.py::test_removes_needless_steps
27.84s call     hypothesis-python/tests/nocover/test_strategy_state.py::TestHypothesis::runTest
27.24s call     hypothesis-python/tests/nocover/test_collective_minimization.py::test_can_collectively_minimize[fractions()]
26.66s call     hypothesis-python/tests/nocover/test_recursive.py::test_drawing_many_near_boundary
25.44s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_find_large_union_list
23.35s call     hypothesis-python/tests/quality/test_float_shrinking.py::test_shrinks_downwards_to_integers
22.07s call     hypothesis-python/tests/nocover/test_stateful.py::test_bad_machines_fail[RoseTreeStateMachine]
20.84s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_can_ignore_left_hand_side_of_flatmap
19.91s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_minimize_sets_of_sets
19.26s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_minimize_long_list
19.14s call     hypothesis-python/tests/nocover/test_collective_minimization.py::test_can_collectively_minimize[integers().filter(lambda x: abs(x) > 100)]
18.92s call     hypothesis-python/tests/nocover/test_collective_minimization.py::test_can_collectively_minimize[integers().flatmap(lambda right: integers(min_value=0).map(lambda length: OrderedPair(right - length, right)))]
17.41s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_minimize_longer_list_of_strings
16.64s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_dictionary[dict]
16.64s call     hypothesis-python/tests/quality/test_shrink_quality.py::test_dictionary[OrderedDict]
========================================================================= short test summary info ==========================================================================
SKIPPED [1] ../../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:367: Hypothesis has been told to run no examples for this test.
SKIPPED [1] tests/cover/test_randoms.py:321: randbytes not supported on this Python version
SKIPPED [1] tests/cover/test_validation.py:280: only on 3.7
SKIPPED [1] tests/nocover/test_explore_arbitrary_languages.py:135: got empty parameter set ['seed', 'language'], function test_run_specific_example at /home/tkloczko/rpmbuild/BUILD/hypothesis-hypothesis-python-6.57.1/hypothesis-python/tests/nocover/test_explore_arbitrary_languages.py:134
SKIPPED [1] tests/nocover/test_type_lookup.py:73: requires python3.10 or higher
SKIPPED [2] tests/pandas/test_data_frame.py:244: Just works on Pandas 1.4, though the changelog is silent
XFAIL tests/array_api/test_arrays.py::test_is_still_unique_with_nan_fill[mock-draft]
  reason: NaNs not distinct
XFAIL tests/array_api/test_arrays.py::test_unique_array_with_fill_can_use_all_elements[mock-draft]
  reason: NaNs not distinct
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_tuple1_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_tuple2_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_tuple_variadic_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_list_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_dict_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_set_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_frozenset_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_deque_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_defaultdict_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_ordered_dict_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_counter_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_chainmap_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_iterable_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_iterator_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_generator_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_reversible_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_container_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_collection_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_callable_ellipsis
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_callable_no_args
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_collections_set_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_collections_mutableset_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_mapping_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_mutable_mapping_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_sequence_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_mutable_sequence_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_keysview_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_itemsview_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_valuesview_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_contextmanager_as_generic
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_re_match_bytes_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_re_match_str_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_re_pattern_bytes_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py37.py::test_resolving_standard_re_pattern_str_as_generic
  Requires Python 3.9 (PEP 585) or later.
XFAIL tests/cover/test_lookup_py38.py::test_simple_optional_key_is_optional
XFAIL tests/cover/test_lookup_py38.py::test_layered_optional_key_is_optional
========================================================= 5322 passed, 7 skipped, 38 xfailed in 2821.50s (0:47:01) =========================================================

Thank you 😄