Merge pull request #7251 from ryanpetrello/ugh-pexpect

fix a unit test that periodically fails
This commit is contained in:
Ryan Petrello
2017-07-21 14:51:56 -04:00
committed by GitHub

View File

@@ -89,7 +89,7 @@ def test_password_prompt():
expect_passwords = OrderedDict() expect_passwords = OrderedDict()
expect_passwords[re.compile(r'Password:\s*?$', re.M)] = 'secret123' expect_passwords[re.compile(r'Password:\s*?$', re.M)] = 'secret123'
status, rc = run.run_pexpect( status, rc = run.run_pexpect(
['python', '-c', 'print raw_input("Password: ")'], ['python', '-c', 'import time; print raw_input("Password: "); time.sleep(.05)'],
HERE, HERE,
{}, {},
stdout, stdout,