From 6ed685ac1f27e3d21e95ea68a924f1ade79a5be9 Mon Sep 17 00:00:00 2001 From: Sergey Logvinenko Date: Mon, 26 Feb 2018 17:19:04 +0300 Subject: [PATCH] fix "TypeError: got ('Password for user .*:') as pattern, must be one of: , pexpect.EOF, pexpect.TIMEOUT" in auth_test.py --- tests/auth_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auth_test.py b/tests/auth_test.py index fb7611bd..a268254f 100644 --- a/tests/auth_test.py +++ b/tests/auth_test.py @@ -198,7 +198,7 @@ class AuthTest(unittest.TestCase): def run_pb_with_auth(cmd, password=None, kill=False): try: with spawn(" ".join(cmd), encoding='utf-8', timeout=10) as probackup: - result = probackup.expect("Password for user .*:", 5) + result = probackup.expect(u"Password for user .*:", 5) if kill: probackup.kill(signal.SIGINT) elif result == 0: