From 0d868b53c6b3cadb775b0780a3ea277e1ccd5d12 Mon Sep 17 00:00:00 2001 From: Delta Regeer Date: Sat, 26 Oct 2024 15:09:46 -0600 Subject: [PATCH] Skip tests on Py3.13 that now pass due to Python changes --- tests/test_util.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_util.py b/tests/test_util.py index bf4c089885..f2c1c89753 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,5 +1,6 @@ import sys import unittest +import pytest from pyramid.util import bytes_, text_ @@ -65,6 +66,10 @@ def worker(obj): self.assertEqual(2, foo.x) self.assertEqual(1, foo.y) + @pytest.mark.skipif( + sys.version_info > (3, 13), + reason="Python 3.13 assigns a __name__ to an inner function", + ) def test_property_without_name(self): def worker(obj): # pragma: no cover pass @@ -270,6 +275,10 @@ def worker(obj): self.assertEqual(2, foo.x) self.assertEqual(1, foo.y) + @pytest.mark.skipif( + sys.version_info > (3, 13), + reason="Python 3.13 assigns a __name__ to an inner function", + ) def test_property_without_name(self): def worker(obj): # pragma: no cover pass