diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2024-06-04 17:46:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 17:46:33 (GMT) |
commit | 010ea93b2b888149561becefeee90826bf8a2934 (patch) | |
tree | c2b2880daf54cefcfc885cb7843df7e2daefd3f3 /Lib/test/test_pyrepl/support.py | |
parent | d419d468ff4aaf6bc673354d0ee41b273d09dd3f (diff) | |
download | cpython-010ea93b2b888149561becefeee90826bf8a2934.zip cpython-010ea93b2b888149561becefeee90826bf8a2934.tar.gz cpython-010ea93b2b888149561becefeee90826bf8a2934.tar.bz2 |
gh-119553: Clear reader on Ctrl-C command (GH-119801)
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 |