Compare commits

..

No commits in common. "factory" and "devel" have entirely different histories.

3 changed files with 47 additions and 0 deletions

BIN
attrs-23.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

3
attrs-24.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346
size 792678

41
pytest8.patch Normal file
View File

@ -0,0 +1,41 @@
From b9084fab02c009a593b604562a69f36a5915c8e5 Mon Sep 17 00:00:00 2001
From: Denis Laxalde <denis@laxalde.org>
Date: Sat, 2 Mar 2024 07:40:36 +0100
Subject: [PATCH] Remove pytest.deprecated_call() in TestAssoc::test_unknown
(#1249)
assoc() no longer raises a deprecation warning since commit
22ae8473fb88d6e585b05c709e81e1a46398a649 but the 'with
pytest.deprecated_call():' in that test was not removed then (in
contrast with other test cases).
Maybe this got unnoticed due to a pytest bug?
In any case, using pytest 8+ (and keeping deprecated_call()) shows that
no warning is raised and the test fails.
Removing the upper bound on pytest in dev dependencies as tests now
pass with pytest 8.0.
Fix #1233.
Co-authored-by: Hynek Schlawack <hs@ox.cx>
---
pyproject.toml | 3 +--
tests/test_funcs.py | 4 +---
2 files changed, 2 insertions(+), 5 deletions(-)
Index: attrs-23.2.0/tests/test_funcs.py
===================================================================
--- attrs-23.2.0.orig/tests/test_funcs.py
+++ attrs-23.2.0/tests/test_funcs.py
@@ -600,9 +600,7 @@ class TestAssoc:
AttrsAttributeNotFoundError.
"""
# No generated class will have a four letter attribute.
- with pytest.raises(
- AttrsAttributeNotFoundError
- ) as e, pytest.deprecated_call():
+ with pytest.raises(AttrsAttributeNotFoundError) as e:
assoc(C(), aaaa=2)
assert (f"aaaa is not an attrs attribute on {C!r}.",) == e.value.args