]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-108303: Move more typing related files to Lib/test/typinganndata (GH-111825...
authorNikita Sobolev <mail@sobolevn.me>
Wed, 8 Nov 2023 16:56:24 +0000 (19:56 +0300)
committerGitHub <noreply@github.com>
Wed, 8 Nov 2023 16:56:24 +0000 (16:56 +0000)
[3.12] gh-108303: Move more typing related files to Lib/test/typinganndata(GH-111825)

Lib/test/test_type_aliases.py
Lib/test/test_typing.py
Lib/test/typinganndata/_typed_dict_helper.py [moved from Lib/test/_typed_dict_helper.py with 100% similarity]
Lib/test/typinganndata/mod_generics_cache.py [moved from Lib/test/mod_generics_cache.py with 100% similarity]

index 8f0a998e1f3dc1786664ff5dc0a1cf0a5719c26b..9c325bc595f585a790e9aa805ac54a57cd7a428c 100644 (file)
@@ -2,7 +2,7 @@ import pickle
 import types
 import unittest
 from test.support import check_syntax_error, run_code
-from test import mod_generics_cache
+from test.typinganndata import mod_generics_cache
 
 from typing import Callable, TypeAliasType, TypeVar, get_args
 
index dc5ab7d889e0f0deaf1b2a9edcd01ea89d73c679..62fe00b0a02f28b02e8212885a1ba3a3d1e2ffd3 100644 (file)
@@ -46,8 +46,7 @@ import weakref
 import types
 
 from test.support import import_helper, captured_stderr, cpython_only
-from test import mod_generics_cache
-from test import _typed_dict_helper
+from test.typinganndata import mod_generics_cache, _typed_dict_helper
 
 
 CANNOT_SUBCLASS_TYPE = 'Cannot subclass special typing classes'