Skip to content

Commit

Permalink
Skip tests on Py3.13 that now pass due to Python changes
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalresistor committed Oct 26, 2024
1 parent d573b98 commit 0d868b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
import unittest
import pytest

from pyramid.util import bytes_, text_

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0d868b5

Please sign in to comment.