File: py314-skip-test-TypedDict.patch

package info (click to toggle)
python-typing-inspect 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: python: 3,179; sh: 8; makefile: 3
file content (33 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Fridolin Glatter <glatter@iiasa.ac.at>
Date: Mon, 20 Oct 2025 10:55:50 +0200
Subject: =?utf-8?q?=E2=9C=85_test=3A_Skip_test_using_deprecated_TypedDict_o?=
 =?utf-8?q?n_latest_Python?=

Origin: upstream, https://github.com/ilevkivskyi/typing_inspect/pull/116/commits/0f8b05c77bbf25fef912c08034079352358a15e2
Bug-Debian: https://bugs.debian.org/1123326
Last-Update: 2026-02-16
---
 test_typing_inspect.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test_typing_inspect.py b/test_typing_inspect.py
index c5a3c9c..df7ed36 100644
--- a/test_typing_inspect.py
+++ b/test_typing_inspect.py
@@ -114,6 +114,7 @@ class Other(dict):
 
 PY36 = sys.version_info[:3] >= (3, 6, 0)
 PY39 = sys.version_info[:3] >= (3, 9, 0)
+PY314 = sys.version_info[:3] >= (3, 14, 0)
 if PY36:
     exec(PY36_TESTS)
 
@@ -494,7 +495,7 @@ class GetUtilityTestCase(TestCase):
                          (List[int], Mapping[str, List[int]]))
         self.assertEqual(get_generic_bases(int), ())
 
-    @skipUnless(PY36, "Python 3.6 required")
+    @skipUnless(PY36 and not PY314, "Python 3.6 required")
     def test_typed_dict_mypy_extension(self):
         TDOld = METypedDict("TDOld", {'x': int, 'y': int})
         self.assertEqual(typed_dict_keys(TDM), {'x': int, 'y': int})