Disable test_wait_on_normal_exit_enabled due to #1819.

This commit is contained in:
Pavel Minaev 2019-09-30 19:34:06 -07:00 committed by Pavel Minaev
parent d19df683d5
commit 70396bd9fd

View file

@ -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"]]