We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc9add6 commit faebf87Copy full SHA for faebf87
Lib/test/test_pyrepl/test_pyrepl.py
@@ -1055,11 +1055,15 @@ def test_parse(self):
1055
self.assertEqual(actual, parsed)
1056
# The parser should not get tripped up by any
1057
# other preceding statements
1058
- code = f'import xyz\n{code}'
1059
- with self.subTest(code=code):
+ _code = f'import xyz\n{code}'
+ parser = ImportParser(_code)
1060
+ actual = parser.parse()
1061
+ with self.subTest(code=_code):
1062
- code = f'import xyz;{code}'
1063
+ _code = f'import xyz;{code}'
1064
1065
1066
1067
1068
1069
def test_parse_error(self):
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life! Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant
0 commit comments