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
Right now there's a pattern inhttps://github.com/python/cpython/blob/main/Lib/test/test_pyrepl/test_pyrepl.py
that looks like this:
output,exit_code=self.run_repl(commands,env=env)if"can't use pyrepl"inoutput:self.skipTest("pyrepl not available")
We manually check the error message afterrun_repl
call and then skip the test.
This design is prone to possible errors.
I propose to do this check inrun_pyrepl
itself.