Always skip pyrepl
tests that contain "can't use pyrepl"
#133054
Labels
tests
Tests in the Lib/test dir
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Bug report
Right now there's a pattern in https://github.com/python/cpython/blob/main/Lib/test/test_pyrepl/test_pyrepl.py
that looks like this:
We manually check the error message after
run_repl
call and then skip the test.This design is prone to possible errors.
I propose to do this check in
run_pyrepl
itself.Linked PRs
test_pyrepl
tests whencannot use pyrepl
is reported #133055test_pyrepl
tests whencannot use pyrepl
is reported (GH-133055) #133095The text was updated successfully, but these errors were encountered: