diff --git a/tests/test_util.py b/tests/test_util.py index bf4c08988..f2c1c8975 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