Skip to content

Commit ca27ae4

Browse files
committed
fix: drop cleanup part for new test
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent 78d7416 commit ca27ae4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/test/test_pyrepl/test_unix_console.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,6 @@ def test_wait_reentry_protection(self, _os_write):
309309
# gh-130168: Test signal handler re-entry protection
310310
console = UnixConsole(term="xterm")
311311
console.prepare()
312-
self.addCleanup(console.restore)
313-
self.addCleanup(setattr, console, '_polling_thread', None)
314312

315313
console._polling_thread = threading.current_thread()
316314
with self.assertRaisesRegex(RuntimeError, "can't re-enter readline"):

0 commit comments

Comments
 (0)