From 8fabd27dbe7a5b7c15e79aa7d8b93196407e2a3c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 24 Feb 2021 13:07:36 -0500 Subject: [PATCH] Lint fixes --- tests/test_debugger.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_debugger.py b/tests/test_debugger.py index 1f5c6d2..9f62653 100644 --- a/tests/test_debugger.py +++ b/tests/test_debugger.py @@ -323,7 +323,6 @@ def test_multi_daemon_subactors(spawn, loglevel): child.expect(pexpect.EOF) - def test_multi_subactors_root_errors(spawn): """Multiple subactors, both erroring and breakpointing as well as a nested subactor erroring. @@ -402,7 +401,10 @@ def test_multi_nested_subactors_error_through_nurseries(spawn): assert "NameError" in before -def test_root_nursery_cancels_before_child_releases_tty_lock(spawn, start_method): +def test_root_nursery_cancels_before_child_releases_tty_lock( + spawn, + start_method +): """Test that when the root sends a cancel message before a nested child has unblocked (which can happen when it has the tty lock and is engaged in pdb) it is indeed cancelled after exiting the debugger. @@ -420,7 +422,6 @@ def test_root_nursery_cancels_before_child_releases_tty_lock(spawn, start_method child.sendline('c') - for i in range(4): time.sleep(0.5) try: @@ -440,7 +441,6 @@ def test_root_nursery_cancels_before_child_releases_tty_lock(spawn, start_method # race conditions on how fast the continue is sent? break - before = str(child.before.decode()) assert "NameError: name 'doggypants' is not defined" in before