summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grammar.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-02 15:10:33 (GMT)
committerGitHub <noreply@github.com>2023-10-02 15:10:33 (GMT)
commitb153cab6d8f32fb62778ea55ffb9c4df40da91e8 (patch)
tree8636cde22b841c062c6c807074375c2487ad4720 /Lib/test/test_grammar.py
parent1dfb41d2626e489e0b4bd2d56dc804a350a2f58d (diff)
downloadcpython-b153cab6d8f32fb62778ea55ffb9c4df40da91e8.zip
cpython-b153cab6d8f32fb62778ea55ffb9c4df40da91e8.tar.gz
cpython-b153cab6d8f32fb62778ea55ffb9c4df40da91e8.tar.bz2
[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 3f61cf646d0506baa0c0c2118f05110446519c62) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r--Lib/test/test_grammar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index ad9f6c7..8501006 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -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):