diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-04 18:45:22 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-04 18:45:22 (GMT) |
| commit | 93b95e91faa17520f2042b4f4ae88379df914666 (patch) | |
| tree | 7bff77928754014c6e809cad7ca017c44cb58652 /Lib/test/test_pyrepl/support.py | |
| parent | fd5428d2d19f79e439d04aec7a33a00eb17bef7c (diff) | |
| download | cpython-93b95e91faa17520f2042b4f4ae88379df914666.zip cpython-93b95e91faa17520f2042b4f4ae88379df914666.tar.gz cpython-93b95e91faa17520f2042b4f4ae88379df914666.tar.bz2 | |
[3.13] gh-119553: Clear reader on Ctrl-C command (GH-119801) (#120062)
(cherry picked from commit 010ea93b2b888149561becefeee90826bf8a2934)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_pyrepl/support.py')
| -rw-r--r-- | Lib/test/test_pyrepl/support.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_pyrepl/support.py b/Lib/test/test_pyrepl/support.py index e807b5f..70e1228 100644 --- a/Lib/test/test_pyrepl/support.py +++ b/Lib/test/test_pyrepl/support.py @@ -75,6 +75,8 @@ def handle_all_events( reader.handle1() except StopIteration: pass + except KeyboardInterrupt: + pass return reader, console |
