Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
Bug report
Bug description:
In this test:
cpython/Lib/test/test_pyrepl/test_pyrepl.py
Lines 1051 to 1063 in605022a
forcode,parsedincases: | |
parser=ImportParser(code) | |
actual=parser.parse() | |
withself.subTest(code=code): | |
self.assertEqual(actual,parsed) | |
# The parser should not get tripped up by any | |
# other preceding statements | |
code=f'import xyz\n{code}' | |
withself.subTest(code=code): | |
self.assertEqual(actual,parsed) | |
code=f'import xyz;{code}' | |
withself.subTest(code=code): | |
self.assertEqual(actual,parsed) |
The second and third assert is not rerunning theImportParser
so it's not actually testing anything right now.
We need to add this before each call to assert:
parser=ImportParser(code)actual=parser.parse()
Please don't pick up this issue, I'd like to reserve it for someone at the PyConUS sprints :)
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response