From 86235a63f72b7a02a72e98b3849016e2e2316a40 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Fri, 7 Apr 2023 10:42:59 -0400 Subject: [PATCH 1/3] Remove use of `pytest-openfiles` --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6780e234..bd467a73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,6 @@ docs = [ test = [ 'pytest >=7.0.0', 'pytest-doctestplus >=0.10.0', - 'pytest-openfiles >=0.5.0', ] [project.urls] @@ -67,13 +66,16 @@ minversion = 4.6 doctest_plus = true doctest_rst = true text_file_format = 'rst' -addopts = '--open-files' +addopts = '' norecursedirs = [ 'src/stpipe/extern', ] testpaths = [ 'tests', ] +filterwarnings = [ + "error::ResourceWarning", +] [tool.ruff] select = [ From ad0f47b8a9c83a76b71358fc2f67708c7f74db13 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Fri, 7 Apr 2023 10:45:40 -0400 Subject: [PATCH 2/3] Update changes --- CHANGES.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 8ee3042f..7c199ca8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,9 @@ +0.5.0 (unreleased) +================== + +- Remove use of deprecated ``pytest-openfiles`` ``pytest`` plugin. This has been replaced by + catching ``ResourceWarning`` s. [#7526] + 0.4.6 (2023-03-27) ================== From 2a05ea0b47d673dc59e68d25fb507e3eda87bc54 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Fri, 7 Apr 2023 11:21:09 -0400 Subject: [PATCH 3/3] Update CHANGES.rst --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 7c199ca8..2cd972e1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,7 +2,7 @@ ================== - Remove use of deprecated ``pytest-openfiles`` ``pytest`` plugin. This has been replaced by - catching ``ResourceWarning`` s. [#7526] + catching ``ResourceWarning`` s. [#90] 0.4.6 (2023-03-27) ==================