From 0ef704cfc3ca94a966152babefdd636f6a65bdea Mon Sep 17 00:00:00 2001 From: "Lumberbot (aka Jack)" <39504233+meeseeksmachine@users.noreply.github.com> Date: Tue, 27 Jun 2023 18:39:53 -0700 Subject: [PATCH] Backport PR #53888 on branch 2.0.x (CI: Fix pytest scripts and doc failure) (#53892) Backport PR #53888: CI: Fix pytest scripts and doc failure Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> --- doc/source/whatsnew/v0.10.0.rst | 2 +- scripts/tests/conftest.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 scripts/tests/conftest.py diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index bd47e6e4bc025..4806f88924baa 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -181,7 +181,7 @@ labeled the aggregated group with the end of the interval: the next day). ``X0``, ``X1``, ...) can be reproduced by specifying ``prefix='X'``: .. ipython:: python - :okwarning: + :okexcept: import io diff --git a/scripts/tests/conftest.py b/scripts/tests/conftest.py new file mode 100644 index 0000000000000..a7976102eab98 --- /dev/null +++ b/scripts/tests/conftest.py @@ -0,0 +1,8 @@ +# pyproject.toml defines addopts: --strict-data-files +# strict-data-files is defined & used in pandas/conftest.py +def pytest_addoption(parser): + parser.addoption( + "--strict-data-files", + action="store_true", + help="Unused", + )