public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/attrs/files/, dev-python/attrs/
@ 2017-02-19 18:09 Mike Gilbert
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Gilbert @ 2017-02-19 18:09 UTC (permalink / raw
  To: gentoo-commits

commit:     1d56d28e26354152645d35c7741f10152fd737e9
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 19 18:08:50 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Feb 19 18:09:01 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d56d28e

dev-python/attrs: suppress too_slow health check on test_recurse_property

Bug: https://bugs.gentoo.org/608570
Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49

 dev-python/attrs/attrs-16.3.0-r1.ebuild          |  4 ++++
 dev-python/attrs/files/test_funcs-too-slow.patch | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/dev-python/attrs/attrs-16.3.0-r1.ebuild b/dev-python/attrs/attrs-16.3.0-r1.ebuild
index 3e2d8e81e6..86b9a8ca66 100644
--- a/dev-python/attrs/attrs-16.3.0-r1.ebuild
+++ b/dev-python/attrs/attrs-16.3.0-r1.ebuild
@@ -29,6 +29,10 @@ DEPEND="${RDEPEND}
 		dev-python/pytest[${PYTHON_USEDEP}]
 	)"
 
+PATCHES=(
+	"${FILESDIR}"/test_funcs-too-slow.patch
+)
+
 python_test() {
 	py.test -v -v || die
 }

diff --git a/dev-python/attrs/files/test_funcs-too-slow.patch b/dev-python/attrs/files/test_funcs-too-slow.patch
new file mode 100644
index 0000000000..4d0698ed7d
--- /dev/null
+++ b/dev-python/attrs/files/test_funcs-too-slow.patch
@@ -0,0 +1,21 @@
+diff --git a/tests/test_funcs.py b/tests/test_funcs.py
+index 36969c7..00da655 100644
+--- a/tests/test_funcs.py
++++ b/tests/test_funcs.py
+@@ -8,7 +8,7 @@ from collections import OrderedDict, Sequence, Mapping
+ 
+ import pytest
+ 
+-from hypothesis import assume, given, strategies as st
++from hypothesis import assume, given, strategies as st, settings, HealthCheck
+ 
+ from .utils import simple_classes, nested_classes
+ 
+@@ -57,6 +57,7 @@ class TestAsDict(object):
+         ), dict_factory=dict_class)
+ 
+     @given(nested_classes, st.sampled_from(MAPPING_TYPES))
++    @settings(suppress_health_check=[HealthCheck.too_slow])
+     def test_recurse_property(self, cls, dict_class):
+         """
+         Property tests for recursive asdict.


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/attrs/files/, dev-python/attrs/
@ 2024-04-01 14:44 Michał Górny
  0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2024-04-01 14:44 UTC (permalink / raw
  To: gentoo-commits

commit:     ae8b818f4e783c967ecad84ed49e86b80659bbb9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  1 14:16:57 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr  1 14:44:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae8b818f

dev-python/attrs: Fix test failure with pytest-8

Closes: https://bugs.gentoo.org/928357
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/attrs/attrs-23.2.0.ebuild               |  5 +++
 dev-python/attrs/files/attrs-23.2.0-pytest-8.patch | 44 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-python/attrs/attrs-23.2.0.ebuild b/dev-python/attrs/attrs-23.2.0.ebuild
index a0aa7acc3ff7..5c18c763b029 100644
--- a/dev-python/attrs/attrs-23.2.0.ebuild
+++ b/dev-python/attrs/attrs-23.2.0.ebuild
@@ -33,3 +33,8 @@ BDEPEND="
 "
 
 distutils_enable_tests pytest
+
+PATCHES=(
+	# https://github.com/python-attrs/attrs/pull/1249
+	"${FILESDIR}/${P}-pytest-8.patch"
+)

diff --git a/dev-python/attrs/files/attrs-23.2.0-pytest-8.patch b/dev-python/attrs/files/attrs-23.2.0-pytest-8.patch
new file mode 100644
index 000000000000..68e4c86c1315
--- /dev/null
+++ b/dev-python/attrs/files/attrs-23.2.0-pytest-8.patch
@@ -0,0 +1,44 @@
+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(-)
+
+diff --git a/tests/test_funcs.py b/tests/test_funcs.py
+index 044aaab..398ba35 100644
+--- a/tests/test_funcs.py
++++ b/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
+-- 
+2.44.0
+


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/attrs/files/, dev-python/attrs/
@ 2024-05-09 16:48 Michał Górny
  0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2024-05-09 16:48 UTC (permalink / raw
  To: gentoo-commits

commit:     83b0064b2c3d4e65222f9e98e7d8ae845b940635
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May  9 14:57:12 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May  9 16:48:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83b0064b

dev-python/attrs: Enable py3.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/attrs/attrs-23.2.0.ebuild            |  8 ++-
 dev-python/attrs/files/attrs-23.2.0-py313.patch | 93 +++++++++++++++++++++++++
 2 files changed, 99 insertions(+), 2 deletions(-)

diff --git a/dev-python/attrs/attrs-23.2.0.ebuild b/dev-python/attrs/attrs-23.2.0.ebuild
index 5c18c763b029..6e858669ffbc 100644
--- a/dev-python/attrs/attrs-23.2.0.ebuild
+++ b/dev-python/attrs/attrs-23.2.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
 
 inherit distutils-r1 pypi
 
@@ -28,7 +28,9 @@ BDEPEND="
 			dev-python/cloudpickle[${PYTHON_USEDEP}]
 		' python3_{10..12})
 		dev-python/hypothesis[${PYTHON_USEDEP}]
-		dev-python/zope-interface[${PYTHON_USEDEP}]
+		$(python_gen_cond_dep '
+			dev-python/zope-interface[${PYTHON_USEDEP}]
+		' python3_{10..12} pypy3)
 	)
 "
 
@@ -37,4 +39,6 @@ distutils_enable_tests pytest
 PATCHES=(
 	# https://github.com/python-attrs/attrs/pull/1249
 	"${FILESDIR}/${P}-pytest-8.patch"
+	# https://github.com/python-attrs/attrs/pull/1255
+	"${FILESDIR}/${P}-py313.patch"
 )

diff --git a/dev-python/attrs/files/attrs-23.2.0-py313.patch b/dev-python/attrs/files/attrs-23.2.0-py313.patch
new file mode 100644
index 000000000000..f7ea8f5e659f
--- /dev/null
+++ b/dev-python/attrs/files/attrs-23.2.0-py313.patch
@@ -0,0 +1,93 @@
+From f9ff9135b472c78a7333d6272c62b92217897464 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Lum=C3=ADr=20=27Frenzy=27=20Balhar?=
+ <frenzy.madness@gmail.com>
+Date: Thu, 7 Mar 2024 10:23:46 +0100
+Subject: [PATCH] Fix test_ne in test_cmp.py for Python 3.13 (#1255)
+
+* Fix test_ne in test_cmp.py for Python 3.13
+
+Compiler in Python 3.13+ strips indents from docstrings
+so they need to be compared without it for new Pythons.
+
+Fixes: https://github.com/python-attrs/attrs/issues/1228
+
+* [pre-commit.ci] auto fixes from pre-commit.com hooks
+
+for more information, see https://pre-commit.ci
+
+---------
+
+Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
+---
+ src/attr/_compat.py |  1 +
+ tests/test_cmp.py   | 11 +++++++----
+ 2 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/src/attr/_compat.py b/src/attr/_compat.py
+index 46b05ca..9010047 100644
+--- a/src/attr/_compat.py
++++ b/src/attr/_compat.py
+@@ -14,6 +14,7 @@ PY_3_8_PLUS = sys.version_info[:2] >= (3, 8)
+ PY_3_9_PLUS = sys.version_info[:2] >= (3, 9)
+ PY310 = sys.version_info[:2] >= (3, 10)
+ PY_3_12_PLUS = sys.version_info[:2] >= (3, 12)
++PY_3_13_PLUS = sys.version_info[:2] >= (3, 13)
+ 
+ 
+ if sys.version_info < (3, 8):
+diff --git a/tests/test_cmp.py b/tests/test_cmp.py
+index 07bfc52..b84b66f 100644
+--- a/tests/test_cmp.py
++++ b/tests/test_cmp.py
+@@ -4,10 +4,10 @@
+ Tests for methods from `attrib._cmp`.
+ """
+ 
+-
+ import pytest
+ 
+ from attr._cmp import cmp_using
++from attr._compat import PY_3_13_PLUS
+ 
+ 
+ # Test parameters.
+@@ -54,6 +54,9 @@ order_ids = [c[0].__name__ for c in order_data]
+ cmp_data = eq_data + order_data
+ cmp_ids = eq_ids + order_ids
+ 
++# Compiler strips indents from docstrings in Python 3.13+
++indent = "" if PY_3_13_PLUS else " " * 8
++
+ 
+ class TestEqOrder:
+     """
+@@ -325,7 +328,7 @@ class TestDundersUnnamedClass:
+         method = self.cls.__ne__
+         assert method.__doc__.strip() == (
+             "Check equality and either forward a NotImplemented or\n"
+-            "        return the result negated."
++            f"{indent}return the result negated."
+         )
+         assert method.__name__ == "__ne__"
+ 
+@@ -393,7 +396,7 @@ class TestDundersPartialOrdering:
+         method = self.cls.__ne__
+         assert method.__doc__.strip() == (
+             "Check equality and either forward a NotImplemented or\n"
+-            "        return the result negated."
++            f"{indent}return the result negated."
+         )
+         assert method.__name__ == "__ne__"
+ 
+@@ -465,7 +468,7 @@ class TestDundersFullOrdering:
+         method = self.cls.__ne__
+         assert method.__doc__.strip() == (
+             "Check equality and either forward a NotImplemented or\n"
+-            "        return the result negated."
++            f"{indent}return the result negated."
+         )
+         assert method.__name__ == "__ne__"
+ 
+-- 
+2.45.0
+


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/attrs/files/, dev-python/attrs/
@ 2024-08-24 13:13 Michał Górny
  0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2024-08-24 13:13 UTC (permalink / raw
  To: gentoo-commits

commit:     2a46b78f1643efea8fe6445b53c007caf26a4ad1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 24 13:13:21 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 24 13:13:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a46b78f

dev-python/attrs: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/attrs/Manifest                          |  2 -
 dev-python/attrs/attrs-23.2.0.ebuild               | 40 ----------
 dev-python/attrs/attrs-24.1.0.ebuild               | 33 --------
 dev-python/attrs/files/attrs-23.2.0-py313.patch    | 93 ----------------------
 dev-python/attrs/files/attrs-23.2.0-pytest-8.patch | 44 ----------
 5 files changed, 212 deletions(-)

diff --git a/dev-python/attrs/Manifest b/dev-python/attrs/Manifest
index b2a3940b7a81..df232cb3bd3b 100644
--- a/dev-python/attrs/Manifest
+++ b/dev-python/attrs/Manifest
@@ -1,3 +1 @@
-DIST attrs-23.2.0.tar.gz 780820 BLAKE2B a06f4f17a81fc173c37661bcf518367a1cdc9a333d2783bd2cd1ac5f0a72bd20ec1afdd964e10255624bcfa027e3a152375cd21472c177428d29bd06b29984a1 SHA512 d8b178072a028b95d8424cd3ce0c8b4e6da8558fbcbcaaef91fbd03cf51e6190aa248aa0bff853e6f7c9595bbd5a8eef9d6f68ae2830cc1cc6d826ab0dda2378
-DIST attrs-24.1.0.tar.gz 792572 BLAKE2B ece012327c6fd5de771376dd70a5a739a282c22cf7fe536d943072193dc45cc5efcf492fe40c46e837bd036109ca01073dd10aec6e116efa668af0872cc51a3a SHA512 dd84da9b06f5da2724d834c1b8b3ffb5d745d49c8a168e0503ca7572561b2021562b5bbfeea133a7d097fc9423a05494f372e72a9fcc25ada2f745c34a80fdab
 DIST attrs-24.2.0.tar.gz 792678 BLAKE2B f5110f5bf4b848a929a3766985fc49ee8da346398c26d0f786a12d89e7596ec7165bdefaae4b2716003c4b3ad7fcc619ec2f5e0d184df899318a7bb02c9919a4 SHA512 fcd14ff79a09a0b2b56734c460b5c43836999b6ed27665038ff7a146f53891b31ab3da07df05f1686474507f342bfce09bc0a6a60865c241e58f7ce8423dc968

diff --git a/dev-python/attrs/attrs-23.2.0.ebuild b/dev-python/attrs/attrs-23.2.0.ebuild
deleted file mode 100644
index 96b89f367504..000000000000
--- a/dev-python/attrs/attrs-23.2.0.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..13} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Attributes without boilerplate"
-HOMEPAGE="
-	https://github.com/python-attrs/attrs/
-	https://attrs.readthedocs.io/
-	https://pypi.org/project/attrs/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
-
-BDEPEND="
-	>=dev-python/hatch-fancy-pypi-readme-23.2.0[${PYTHON_USEDEP}]
-	dev-python/hatch-vcs[${PYTHON_USEDEP}]
-	test? (
-		$(python_gen_impl_dep sqlite)
-		dev-python/cloudpickle[${PYTHON_USEDEP}]
-		dev-python/hypothesis[${PYTHON_USEDEP}]
-		dev-python/zope-interface[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-	# https://github.com/python-attrs/attrs/pull/1249
-	"${FILESDIR}/${P}-pytest-8.patch"
-	# https://github.com/python-attrs/attrs/pull/1255
-	"${FILESDIR}/${P}-py313.patch"
-)

diff --git a/dev-python/attrs/attrs-24.1.0.ebuild b/dev-python/attrs/attrs-24.1.0.ebuild
deleted file mode 100644
index d4334e9fcb82..000000000000
--- a/dev-python/attrs/attrs-24.1.0.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..13} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Attributes without boilerplate"
-HOMEPAGE="
-	https://github.com/python-attrs/attrs/
-	https://attrs.readthedocs.io/
-	https://pypi.org/project/attrs/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
-
-BDEPEND="
-	>=dev-python/hatch-fancy-pypi-readme-23.2.0[${PYTHON_USEDEP}]
-	dev-python/hatch-vcs[${PYTHON_USEDEP}]
-	test? (
-		$(python_gen_impl_dep sqlite)
-		dev-python/cloudpickle[${PYTHON_USEDEP}]
-		dev-python/hypothesis[${PYTHON_USEDEP}]
-		dev-python/zope-interface[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest

diff --git a/dev-python/attrs/files/attrs-23.2.0-py313.patch b/dev-python/attrs/files/attrs-23.2.0-py313.patch
deleted file mode 100644
index f7ea8f5e659f..000000000000
--- a/dev-python/attrs/files/attrs-23.2.0-py313.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-From f9ff9135b472c78a7333d6272c62b92217897464 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Lum=C3=ADr=20=27Frenzy=27=20Balhar?=
- <frenzy.madness@gmail.com>
-Date: Thu, 7 Mar 2024 10:23:46 +0100
-Subject: [PATCH] Fix test_ne in test_cmp.py for Python 3.13 (#1255)
-
-* Fix test_ne in test_cmp.py for Python 3.13
-
-Compiler in Python 3.13+ strips indents from docstrings
-so they need to be compared without it for new Pythons.
-
-Fixes: https://github.com/python-attrs/attrs/issues/1228
-
-* [pre-commit.ci] auto fixes from pre-commit.com hooks
-
-for more information, see https://pre-commit.ci
-
----------
-
-Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
----
- src/attr/_compat.py |  1 +
- tests/test_cmp.py   | 11 +++++++----
- 2 files changed, 8 insertions(+), 4 deletions(-)
-
-diff --git a/src/attr/_compat.py b/src/attr/_compat.py
-index 46b05ca..9010047 100644
---- a/src/attr/_compat.py
-+++ b/src/attr/_compat.py
-@@ -14,6 +14,7 @@ PY_3_8_PLUS = sys.version_info[:2] >= (3, 8)
- PY_3_9_PLUS = sys.version_info[:2] >= (3, 9)
- PY310 = sys.version_info[:2] >= (3, 10)
- PY_3_12_PLUS = sys.version_info[:2] >= (3, 12)
-+PY_3_13_PLUS = sys.version_info[:2] >= (3, 13)
- 
- 
- if sys.version_info < (3, 8):
-diff --git a/tests/test_cmp.py b/tests/test_cmp.py
-index 07bfc52..b84b66f 100644
---- a/tests/test_cmp.py
-+++ b/tests/test_cmp.py
-@@ -4,10 +4,10 @@
- Tests for methods from `attrib._cmp`.
- """
- 
--
- import pytest
- 
- from attr._cmp import cmp_using
-+from attr._compat import PY_3_13_PLUS
- 
- 
- # Test parameters.
-@@ -54,6 +54,9 @@ order_ids = [c[0].__name__ for c in order_data]
- cmp_data = eq_data + order_data
- cmp_ids = eq_ids + order_ids
- 
-+# Compiler strips indents from docstrings in Python 3.13+
-+indent = "" if PY_3_13_PLUS else " " * 8
-+
- 
- class TestEqOrder:
-     """
-@@ -325,7 +328,7 @@ class TestDundersUnnamedClass:
-         method = self.cls.__ne__
-         assert method.__doc__.strip() == (
-             "Check equality and either forward a NotImplemented or\n"
--            "        return the result negated."
-+            f"{indent}return the result negated."
-         )
-         assert method.__name__ == "__ne__"
- 
-@@ -393,7 +396,7 @@ class TestDundersPartialOrdering:
-         method = self.cls.__ne__
-         assert method.__doc__.strip() == (
-             "Check equality and either forward a NotImplemented or\n"
--            "        return the result negated."
-+            f"{indent}return the result negated."
-         )
-         assert method.__name__ == "__ne__"
- 
-@@ -465,7 +468,7 @@ class TestDundersFullOrdering:
-         method = self.cls.__ne__
-         assert method.__doc__.strip() == (
-             "Check equality and either forward a NotImplemented or\n"
--            "        return the result negated."
-+            f"{indent}return the result negated."
-         )
-         assert method.__name__ == "__ne__"
- 
--- 
-2.45.0
-

diff --git a/dev-python/attrs/files/attrs-23.2.0-pytest-8.patch b/dev-python/attrs/files/attrs-23.2.0-pytest-8.patch
deleted file mode 100644
index 68e4c86c1315..000000000000
--- a/dev-python/attrs/files/attrs-23.2.0-pytest-8.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-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(-)
-
-diff --git a/tests/test_funcs.py b/tests/test_funcs.py
-index 044aaab..398ba35 100644
---- a/tests/test_funcs.py
-+++ b/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
--- 
-2.44.0
-


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-24 13:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 14:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/attrs/files/, dev-python/attrs/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2024-08-24 13:13 Michał Górny
2024-05-09 16:48 Michał Górny
2017-02-19 18:09 Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox