Skip to content

Commit 0d868b5

Browse files
Skip tests on Py3.13 that now pass due to Python changes
1 parent d573b98 commit 0d868b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_util.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22
import unittest
3+
import pytest
34

45
from pyramid.util import bytes_, text_
56

@@ -65,6 +66,10 @@ def worker(obj):
6566
self.assertEqual(2, foo.x)
6667
self.assertEqual(1, foo.y)
6768

69+
@pytest.mark.skipif(
70+
sys.version_info > (3, 13),
71+
reason="Python 3.13 assigns a __name__ to an inner function",
72+
)
6873
def test_property_without_name(self):
6974
def worker(obj): # pragma: no cover
7075
pass
@@ -270,6 +275,10 @@ def worker(obj):
270275
self.assertEqual(2, foo.x)
271276
self.assertEqual(1, foo.y)
272277

278+
@pytest.mark.skipif(
279+
sys.version_info > (3, 13),
280+
reason="Python 3.13 assigns a __name__ to an inner function",
281+
)
273282
def test_property_without_name(self):
274283
def worker(obj): # pragma: no cover
275284
pass

0 commit comments

Comments
 (0)