Skip to content

Commit b194f8f

Browse files
committed
fix: forget to add clean up back
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent ca27ae4 commit b194f8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_pyrepl/test_unix_console.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,6 @@ def test_wait_reentry_protection(self, _os_write):
313313
console._polling_thread = threading.current_thread()
314314
with self.assertRaisesRegex(RuntimeError, "can't re-enter readline"):
315315
console.wait(timeout=0)
316+
317+
console._polling_thread = None
318+
console.restore()

0 commit comments

Comments
 (0)