From 70396bd9fd39f4c8eea42cbd8ec29f5417e1911e Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Mon, 30 Sep 2019 19:34:06 -0700 Subject: [PATCH] Disable test_wait_on_normal_exit_enabled due to #1819. --- tests/ptvsd/server/test_start_stop.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/ptvsd/server/test_start_stop.py b/tests/ptvsd/server/test_start_stop.py index 888111b0..eae2076c 100644 --- a/tests/ptvsd/server/test_start_stop.py +++ b/tests/ptvsd/server/test_start_stop.py @@ -26,13 +26,17 @@ def wait_and_press_key(session): log.info("Waiting for keypress prompt...") while not has_waited(session): time.sleep(0.1) + + # Wait a bit to simulate the user reaction time, and test that debuggee does + # not exit all by itself. + time.sleep(1) + log.info("Simulating keypress.") - session.debuggee.stdin.write(b" \r\n") + session.debuggee.stdin.write(b"\n") @pytest.mark.skipif( - sys.version_info < (3, 0) and platform.system() == "Windows", - reason="On Windows + Python 2, unable to send key strokes to test.", + sys.version_info < (3, 0), reason="https://github.com/microsoft/ptvsd/issues/1819" ) @pytest.mark.parametrize( "run", [runners.launch["integratedTerminal"], runners.launch["externalTerminal"]]