mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[3.12] gh-108303: Move ann_module*.py
files to typinganndata/
folder (GH-108354) (#109672)
gh-108303: Move `ann_module*.py` files to `typinganndata/` folder (GH-108354)
(cherry picked from commit 3f61cf646d
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
1dfb41d262
commit
b153cab6d8
13 changed files with 13 additions and 8 deletions
|
@ -12,9 +12,9 @@ from sys import *
|
|||
|
||||
# different import patterns to check that __annotations__ does not interfere
|
||||
# with import machinery
|
||||
import test.ann_module as ann_module
|
||||
import test.typinganndata.ann_module as ann_module
|
||||
import typing
|
||||
from test import ann_module2
|
||||
from test.typinganndata import ann_module2
|
||||
import test
|
||||
|
||||
# These are shared with test_tokenize and other test modules.
|
||||
|
@ -467,7 +467,7 @@ class GrammarTests(unittest.TestCase):
|
|||
def test_var_annot_in_module(self):
|
||||
# check that functions fail the same way when executed
|
||||
# outside of module where they were defined
|
||||
ann_module3 = import_helper.import_fresh_module("test.ann_module3")
|
||||
ann_module3 = import_helper.import_fresh_module("test.typinganndata.ann_module3")
|
||||
with self.assertRaises(NameError):
|
||||
ann_module3.f_bad_ann()
|
||||
with self.assertRaises(NameError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue