summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/support.py
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2024-06-04 17:46:33 (GMT)
committerGitHub <noreply@github.com>2024-06-04 17:46:33 (GMT)
commit010ea93b2b888149561becefeee90826bf8a2934 (patch)
treec2b2880daf54cefcfc885cb7843df7e2daefd3f3 /Lib/test/test_pyrepl/support.py
parentd419d468ff4aaf6bc673354d0ee41b273d09dd3f (diff)
downloadcpython-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.py2
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