mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-23 22:00:49 +02:00
fix "TypeError: got <type 'str'> ('Password for user .*:') as pattern, must be one of: <type 'unicode'>, pexpect.EOF, pexpect.TIMEOUT" in auth_test.py
This commit is contained in:
parent
0ef622f16b
commit
6ed685ac1f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user