-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump pytest from 7.4.4 to 8.3.2 #1656
Conversation
d26456c
to
2b48fe8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O, this might been changes ... let's see
0965ef9
to
0a3b6b2
Compare
We are blocked until this plugin gets 8.0.0 support: pytest-dev/pytest-asyncio#737 |
7e1b29b
to
00ce7c8
Compare
00ce7c8
to
16caeac
Compare
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.4 to 8.0.0. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@7.4.4...8.0.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
16caeac
to
3324178
Compare
Now seems |
A newer version of pytest exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged. |
I poked at this a bit yesterday and here are my observations so far:
Python 3.12.7, pytest 8.3.2, pytest-asyncio 0.23.8 |
Executed each test module in combination with
Table Columns
It also doesn't seem to be related to PS> pytest --verbose .\src\bandersnatch\tests\test_verify.py `
>> .\src\bandersnatch\tests\test_delete.py::test_delete_simple_page `
>> .\src\bandersnatch\tests\test_delete.py::test_delete_path |
I noticed that in several other places where we fetch the current storage plugin, we were passing the --- i/src/bandersnatch/delete.py
+++ w/src/bandersnatch/delete.py
@@ -21,7 +21,7 @@ logger = logging.getLogger(__name__)
async def delete_path(blob_path: Path, dry_run: bool = False) -> int:
- storage_backend = next(iter(storage_backend_plugins()))
+ storage_backend = next(iter(storage_backend_plugins(clear_cache=True)))
if dry_run:
logger.info(f" rm {blob_path}")
return 0 This doesn't seem like a practical solution to me, since |
I was also seeing a few failures in diff --git i/src/bandersnatch/tests/test_main.py w/src/bandersnatch/tests/test_main.py
index 47fcdd1..3d55bbd 100644
--- i/src/bandersnatch/tests/test_main.py
+++ w/src/bandersnatch/tests/test_main.py
@@ -24,11 +24,14 @@ async def empty_dict(*args: Any, **kwargs: Any) -> dict:
return {}
-def setup() -> None:
- """simple setup function to clear Singleton._instances before each test"""
+@pytest.fixture
+def clear_config_singleton() -> None:
Singleton._instances = {}
+pytestmark = pytest.mark.usefixtures("clear_config_singleton")
+
+
def test_main_help(capfd: CaptureFixture) -> None:
sys.argv = ["bandersnatch", "--help"]
with pytest.raises(SystemExit):
@@ -103,7 +106,6 @@ def test_main_reads_config_values(mirror_mock: mock.MagicMock, tmpdir: Path) ->
def test_main_reads_custom_config_values(
mirror_mock: "BandersnatchMirror", logging_mock: mock.MagicMock, customconfig: Path
) -> None:
- setup()
conffile = str(customconfig / "bandersnatch.conf")
sys.argv = ["bandersnatch", "-c", conffile, "mirror"]
main(asyncio.new_event_loop())
@@ -114,7 +116,6 @@ def test_main_reads_custom_config_values(
def test_main_throws_exception_on_unsupported_digest_name(
customconfig: Path,
) -> None:
- setup()
conffile = str(customconfig / "bandersnatch.conf")
parser = configparser.ConfigParser()
parser.read(conffile) I think I should be able to put together a clean commit for this in a bit. But I need to double check that this isn't a problem I caused in my local working tree, since it doesn't seem related to Pytest 7x -> 8x. |
@flyinghyrax did this elsewhere |
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps pytest from 7.4.4 to 8.0.0.
Release notes
Sourced from pytest's releases.
... (truncated)
Commits
478f823
Prepare release version 8.0.06085900
[8.0.x] fix: avoid rounding microsecond to1_000_000
(#11863)3b41c65
[8.0.x] Escape skip reason in junitxml (#11845)747072a
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (#11768)011a475
Properly attach packages to the GH release notes (#11839) (#11840)97960bd
Merge pull request #11835 from pytest-dev/release-8.0.0rc26be0a3c
Prepare release version 8.0.0rc244ffe07
Merge pull request #11837 from pytest-dev/backport-11836-to-8.0.x14ecb04
[8.0.x] testing: temporarily disable test due to hypothesis issue41c8dab
Merge pull request #11831 from bluetech/backport-11825-to-8.0.xYou can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)