BUG 1.5.2: pytest is failing with latest `hypotesis`

This issue has been created since 2022-11-22.

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

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.
- `python3 -sBm build -w --no-isolation`
- because I'm calling `build` with `--no-isolation` I'm using during all processes only locally installed modules
- install .whl file in </install/prefix>
- run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Issue Description

Lookks like some pytest units are failing with latest hypotesis 6.58.0 because they are using internal hypotesis API.

Expected Behavior

pytest should not fail

Installed Versions

Here is list of installed modules in build env

Package                       Version
----------------------------- -----------------
alabaster                     0.7.12
appdirs                       1.4.4
asn1crypto                    1.5.1
attrs                         22.1.0
Babel                         2.11.0
bcrypt                        3.2.2
botocore                      1.29.13
Brlapi                        0.8.3
build                         0.9.0
cffi                          1.15.1
charset-normalizer            3.0.1
contourpy                     1.0.6
cryptography                  38.0.1
cssselect                     1.1.0
cycler                        0.11.0
distro                        1.8.0
dnspython                     2.2.1
docutils                      0.19
exceptiongroup                1.0.0
extras                        1.0.0
fixtures                      4.0.0
fonttools                     4.38.0
gpg                           1.17.1-unknown
guzzle-sphinx-theme           0.7.11
idna                          3.4
imagesize                     1.4.1
importlib-metadata            5.0.0
iniconfig                     1.1.1
Jinja2                        3.1.2
jmespath                      1.0.0
kiwisolver                    1.4.4
libcomps                      0.1.19
louis                         3.23.0
lxml                          4.9.1
MarkupSafe                    2.1.1
matplotlib                    3.6.2
numpy                         1.23.1
olefile                       0.46
packaging                     21.3
pbr                           5.9.0
pep517                        0.13.0
Pillow                        9.3.0
pip                           22.3.1
pluggy                        1.0.0
ply                           3.11
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycparser                     2.21
Pygments                      2.13.0
PyGObject                     3.42.2
pyparsing                     3.0.9
pytest                        7.2.0
python-dateutil               2.8.2
pytz                          2022.4
PyYAML                        6.0
requests                      2.28.1
rpm                           4.17.0
s3transfer                    0.6.0
scour                         0.38.2
setuptools                    65.6.0
six                           1.16.0
snowballstemmer               2.2.0
Sphinx                        5.3.0
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
testtools                     2.5.0
tomli                         2.0.1
tpm2-pkcs11-tools             1.33.7
tpm2-pytss                    1.1.0
urllib3                       1.26.12
wheel                         0.38.4
zipp                          3.10.0
MarcoGorelli wrote this answer on 2022-11-22

pandas CI is green and is using hypothesis 6.58.0

which tests fail?

kloczek wrote this answer on 2022-11-22

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pandas-1.5.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pandas-1.5.2-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -p no:randomly pandas --import-mode=importlib pandas
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.15, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pandas-1.5.2, configfile: pyproject.toml
plugins: xdist-3.0.2, hypothesis-6.58.0, timeout-2.1.0, asyncio-0.20.2, flaky-3.7.0
asyncio: mode=strict
collected 177395 items / 31 skipped

[..]

FAILED pandas/tests/test_downstream.py::test_oo_optimizable - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-OO', '-c', 'import pandas']' returned non-zero exit status 1.
FAILED pandas/tests/test_downstream.py::test_oo_optimized_datetime_index_unpickle - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-OO', '-c', "import pandas as pd, pickle; pickle.loads(pickle.dumps(pd.date_range('2021-01-01', periods=1...
FAILED pandas/tests/test_downstream.py::test_missing_required_dependency - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import pandas;print(pandas.__file__)']' returned non-zero exit status 1.
FAILED pandas/tests/api/test_api.py::TestTesting::test_util_in_top_level - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import pandas; pandas.util.testing.assert_series_equal']' returned non-zero exit status 1.
FAILED pandas/tests/frame/indexing/test_where.py::test_where_inplace_casting - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/indexes/ranges/test_setops.py::test_range_difference - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/test_clipboard.py::TestClipboard::test_raw_roundtrip[\U0001f44d...] - pandas.errors.PyperclipException:
FAILED pandas/tests/io/test_clipboard.py::TestClipboard::test_raw_roundtrip[\u03a9\u0153\u2211\xb4...] - pandas.errors.PyperclipException:
FAILED pandas/tests/io/test_clipboard.py::TestClipboard::test_raw_roundtrip[abcd...] - pandas.errors.PyperclipException:
FAILED pandas/tests/io/test_compression.py::test_with_missing_lzma - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', "import sys\nsys.modules['lzma'] = None\nimport pandas\n"]' returned non-zero exit status 1.
FAILED pandas/tests/io/test_compression.py::test_with_missing_lzma_runtime - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', "\nimport sys\nimport pytest\nsys.modules['lzma'] = None\nimport pandas as pd\ndf = pd.DataFrame()\n...
FAILED pandas/tests/io/excel/test_openpyxl.py::test_engine_kwargs_append_data_only[True-0-.xlsx] - AssertionError: assert None == 0
FAILED pandas/tests/io/excel/test_writers.py::TestExcelWriterEngineTests::test_ExcelWriter_dispatch[OpenpyxlWriter-.xlsx] - IndexError: At least one sheet must be visible
FAILED pandas/tests/io/excel/test_writers.py::TestFSPath::test_excelwriter_fspath - IndexError: At least one sheet must be visible
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-True- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-True--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-True-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-True-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-False- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-False--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-False-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-False-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-True- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-True--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-True-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-True-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-False- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-False--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-False-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-False-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-True- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-True--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-True-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-False- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-False--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-False-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-False- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-False--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-False-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-False-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-True- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-True--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-True-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-True-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-False- ] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-False--] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-False-.] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-False-/] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/plotting/test_converter.py::test_registry_mpl_resets - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import matplotlib.units as units; import matplotlib.dates as mdates; n_conv = '['/usr/bin/python3', '-c', 'import matplotlib.units as units; import matplotlib.dates as mdates; n_conv = len(units.registry); ...
FAILED pandas/tests/plotting/test_converter.py::TestRegistration::test_dont_register_by_default - subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import matplotlib.units; import pandas as pd; units = dict(matplotlib.units.registry); assert pd.Ti...
FAILED pandas/tests/tseries/offsets/test_offsets_properties.py::test_on_offset_implementations - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_offsets_properties.py::test_shift_across_dst - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_add_sub[Hour] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_add_sub[Minute] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_add_sub[Second] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_add_sub[Milli] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_add_sub[Micro] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_add_sub[Nano] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_equality[Hour] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_equality[Minute] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_equality[Second] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_equality[Milli] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_equality[Micro] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tseries/offsets/test_ticks.py::test_tick_equality[Nano] - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
FAILED pandas/tests/tslibs/test_ccalendar.py::test_isocalendar - ModuleNotFoundError: No module named 'hypothesis.internal.conjecture.optimiser'
=================================== 85 failed, 157079 passed, 18876 skipped, 1382 xfailed, 4 xpassed, 388 warnings in 1768.40s (0:29:28) ===================================
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-a60ca5cf-8931-4d4c-9bad-97f0f3dc456e/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-a60ca5cf-8931-4d4c-9bad-97f0f3dc456e/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-a60ca5cf-8931-4d4c-9bad-97f0f3dc456e/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-a60ca5cf-8931-4d4c-9bad-97f0f3dc456e/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-a60ca5cf-8931-4d4c-9bad-97f0f3dc456e/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-a60ca5cf-8931-4d4c-9bad-97f0f3dc456e
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-a60ca5cf-8931-4d4c-9bad-97f0f3dc456e'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-49e97a33-5044-49ba-93b2-c3c2679f7b74/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-49e97a33-5044-49ba-93b2-c3c2679f7b74/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-49e97a33-5044-49ba-93b2-c3c2679f7b74/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-49e97a33-5044-49ba-93b2-c3c2679f7b74/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-49e97a33-5044-49ba-93b2-c3c2679f7b74/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-49e97a33-5044-49ba-93b2-c3c2679f7b74
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-49e97a33-5044-49ba-93b2-c3c2679f7b74'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fccebcb1-3f6d-402b-a536-455f6e557640/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fccebcb1-3f6d-402b-a536-455f6e557640/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fccebcb1-3f6d-402b-a536-455f6e557640/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fccebcb1-3f6d-402b-a536-455f6e557640/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fccebcb1-3f6d-402b-a536-455f6e557640/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fccebcb1-3f6d-402b-a536-455f6e557640
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-fccebcb1-3f6d-402b-a536-455f6e557640'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-30fc3f3e-c243-4ed5-9ece-bde9b009ee35/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-30fc3f3e-c243-4ed5-9ece-bde9b009ee35/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-30fc3f3e-c243-4ed5-9ece-bde9b009ee35/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-30fc3f3e-c243-4ed5-9ece-bde9b009ee35
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-30fc3f3e-c243-4ed5-9ece-bde9b009ee35'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-26a95a29-9fe1-4efb-94f9-30b2f2b9b6b0/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-26a95a29-9fe1-4efb-94f9-30b2f2b9b6b0/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-26a95a29-9fe1-4efb-94f9-30b2f2b9b6b0/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-26a95a29-9fe1-4efb-94f9-30b2f2b9b6b0/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-26a95a29-9fe1-4efb-94f9-30b2f2b9b6b0/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-26a95a29-9fe1-4efb-94f9-30b2f2b9b6b0
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-26a95a29-9fe1-4efb-94f9-30b2f2b9b6b0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-c355109b-0480-4527-94ed-b749860895b4/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-c355109b-0480-4527-94ed-b749860895b4/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-c355109b-0480-4527-94ed-b749860895b4/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-c355109b-0480-4527-94ed-b749860895b4/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-c355109b-0480-4527-94ed-b749860895b4/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
  warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-c355109b-0480-4527-94ed-b749860895b4
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-c355109b-0480-4527-94ed-b749860895b4'
  warnings.warn(

And here is full pytest log python-pandas-pytest.txt

MarcoGorelli wrote this answer on 2022-11-22

Can't reproduce, sorry:

$ pytest pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date
=============================================================================== test session starts ================================================================================
platform linux -- Python 3.8.13, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/marcogorelli/pandas-dev, configfile: pyproject.toml
plugins: forked-1.4.0, cython-0.2.0, hypothesis-6.56.4, xdist-3.0.2, asyncio-0.20.2, cov-4.0.0, typeguard-2.13.3, anyio-3.6.1
asyncio: mode=strict
collected 56 items                                                                                                                                                                 

pandas/tests/io/parser/test_parse_dates.py ..................x...x.................................

--------------------------------------------------------- generated xml file: /home/marcogorelli/pandas-dev/test-data.xml ----------------------------------------------------------
=============================================================================== slowest 30 durations ===============================================================================
0.27s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-True-.]
0.22s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %Y-False-.]
0.10s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False--]
0.09s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-True-.]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True-/]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False- ]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-True- ]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True--]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False--]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True- ]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-True-.]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False- ]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False-.]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False-/]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-False-/]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y %m %d-False-.]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True--]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%d %m %Y-True-/]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True-/]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True--]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True- ]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True- ]
0.06s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-False- ]
0.05s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True-/]
0.05s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-True- ]
0.05s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y %m %d-True-.]
0.05s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-True-.]
0.05s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%m %d %Y-True--]
0.05s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%Y%m%d-False-.]
0.05s call     pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date[%y%m%d-True-.]
========================================================================== 54 passed, 2 xfailed in 3.88s ===========================================================================
(pandas-dev) [email protected]:~/pandas-dev$ 

Closing for now then, if you're following an installation procedure which isn't recommended by the docs then I think that's up to you to debug, but I don't think there's anything actionable here

kloczek wrote this answer on 2022-11-23

You are using hypothesis 6.56.
In my case it is 6.58.0.
Could you please try upgrade you hypothesis to the latest version?

kloczek wrote this answer on 2022-11-23

From your log:

plugins: forked-1.4.0, cython-0.2.0, hypothesis-6.56.4, xdist-3.0.2, asyncio-0.20.2, cov-4.0.0, typeguard-2.13.3, anyio-3.6.1
asyncio: mode=strict

On that URL I see only {"count":11,"value":"Uri expired"}

MarcoGorelli wrote this answer on 2022-11-23

you can look at any recent CI job logs and see it, e.g. https://github.com/pandas-dev/pandas/actions/runs/3532039974/jobs/5925912701

kloczek wrote this answer on 2022-11-23

Indeed however looking on last commit CI https://github.com/pandas-dev/pandas/actions/runs/3532039965/jobs/5925906197 I see only small subset of modules which I have installed in buikd env

+ python -m pip list
Package          Version                    Editable project location
---------------- -------------------------- -------------------------
attrs            22.1.0
Cython           0.29.32
exceptiongroup   1.0.4
execnet          1.9.0
hypothesis       6.58.0
iniconfig        1.1.1
numpy            1.23.5
packaging        21.3
pandas           2.0.0.dev0+741.gd1ecf63e20 /pandas
pip              22.3.1
pluggy           1.0.0
pyparsing        3.0.9
pytest           7.2.0
pytest-asyncio   0.20.2
pytest-xdist     3.0.2
python-dateutil  2.8.2
pytz             2022.6
setuptools       59.8.0
six              1.16.0
sortedcontainers 2.4.0
tomli            2.0.1
wheel            0.38.4

Looks like pytest is failing in my case in some optional units which are added because I have specified more build dependencies.
Coould you please repeat pytest pandas/tests/io/parser/test_parse_dates.py::test_hypothesis_delimited_date in your debel env after upgrade hypotesis as well?

MarcoGorelli wrote this answer on 2022-11-23
More Details About Repo
Owner Name pandas-dev
Repo Name pandas
Full Name pandas-dev/pandas
Language Python
Created Date 2010-08-24
Updated Date 2022-12-07
Star Count 36164
Watcher Count 1118
Fork Count 15472
Issue Count 3683

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Context when in "else" clause 4 2021-10-05 2022-11-24
compiledb incorrectly strip quotes. 2 2019-03-18 2022-11-20
Zeep raises AttributeError instead of TransportError when parsing invalid xml with strict=False 0 2022-09-08 2022-11-22
Is it possible to let the window auto-size to fit all widgets without overlaps? 4 2022-07-22 2022-11-15
What kind of constraints on parameter bounds are supported natively? 1 2021-12-15 2022-10-11
Mixed Precision Training 1 2022-02-18 2022-10-21
[Bug]: Invalid lines are not in the log file 4 2022-01-27 2022-10-14
no mitochondrial genes are included in loom file (bug fixed, velocyto team please check this) 16 2021-11-12 2022-12-04
Change action for skip_action in the DialogueLabel node. 2 2022-04-26 2022-11-18
IEventProcessor does not allow asynchronous propagation of backpressure 9 2018-07-10 2022-11-28
[BUG] Replace ~ for $HOME in -o/-d 4 2022-03-21 2022-11-16
Animation effect on autoplay 7 2020-11-27 2022-10-26
File comparison from command line 1 2021-12-22 2022-11-13
match multiple short strings in parallel 0 2021-09-16 2022-09-29
Support multiprocessing for the process module 3 2021-09-16 2022-08-26
Consider dropping numpy dependency 6 2021-09-14 2022-10-14
Atom for Michaelis–Menten Kinetics 4 2021-05-27 2022-12-05
Improve error message in Placeholder 3 2021-10-17 2022-11-03
Indentation in Source Code Block 0 2021-02-02 2022-11-27
Not able to use algorithm packages 2 2020-10-18 2022-11-21
Custom Column in Models doesn't respect filtering when binning is applied 1 2022-11-01 2022-10-31
Static linking error [C++, Linux] 8 2019-08-22 2022-10-03
Minecraft Bedrock requires FUSE to be installed 21 2022-03-25 2022-08-07
Keycloak infinispan cache config changes are getting ignored in keycloak x 5 2022-04-21 2022-08-29
Does not display negative numbers from intl.NumberFormat correctly 1 2022-03-08 2022-10-23
Request duplication issue 11 2022-03-22 2022-12-04
Support React Router 6? 3 2022-08-27 2022-12-04
Napoleon emits empty "returns" sections 1 2021-12-02 2022-10-21
Error: "Attempted to load class "KnpPaginatorBundle" from namespace "Knp\Bundle\PaginatorBundle". Did you forget a "use" statement for another namespace?" 5 2020-12-26 2022-11-24
Is it possible to have the database outside of docker? 5 2022-01-05 2022-12-05
Allow users to display certain buckets only 1 2022-01-31 2022-11-26
Xed freezes opening a non-standart file 0 2021-09-30 2022-11-18
SSL Pinning function 0 2022-08-03 2022-12-01
Implement `consumer.unsubscribe()` 5 2020-07-14 2022-12-05
[BUG] [Swift5] special characters in enum values lead to Xcode compile error 2 2021-12-13 2022-11-30
LLVM 15.0.0-rc2: compiler_rt does not build out of the box on older macOS: Failed to determine SDK version for "iphonesimulator" SDK 23 2022-08-09 2022-10-10
KeyNotFoundException: The given key '89302010' was not present in the dictionary. Network Scene Manager 11 2022-10-23 2022-11-20
tool/darknet2pytorch.py 不执行任何代码 6 2021-03-18 2022-11-23
0.47 checks missing parens for if expression, while 0.46 doesn't (regression?) 1 2022-08-23 2022-11-28
Logging to a file using relative path fails in cli mode 1 2022-10-18 2022-11-20
How Can I get qr code image after ı had to read QR Code 0 2021-04-06 2022-11-28
secondary showAllActionsThreshold 2 2020-04-10 2022-10-31
Support External PE Postgres 1 2021-08-27 2022-12-05
[Feature] Make it easy to create/consume massive changes without breaking major version 24 2022-10-17 2022-10-28
[RELEASE] Release version 1.3.7 0 2022-10-15 2022-10-17
Map.entries crashes for non-self-similar keys 2 2022-05-16 2022-10-01
[Bug] [API] Cannot view task log 3 2022-08-02 2022-10-31
forge-pull silently fails for gitlab 10 2021-01-14 2022-11-22
Emoncms doesn't handle Wh, A, or V sensors with device or state class 5 2022-02-15 2022-10-02
Flutter Material Icon - Question_mark 4 2022-03-15 2022-10-15