Skip to content

Commit 6ed685a

Browse files
author
Sergey Logvinenko
committed
fix "TypeError: got <type 'str'> ('Password for user .*:') as pattern, must be one of: <type 'unicode'>, pexpect.EOF, pexpect.TIMEOUT" in auth_test.py
1 parent 0ef622f commit 6ed685a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/auth_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def test_pgpassword_and_wrong_pgpass(self):
198198
def run_pb_with_auth(cmd, password=None, kill=False):
199199
try:
200200
with spawn(" ".join(cmd), encoding='utf-8', timeout=10) as probackup:
201-
result = probackup.expect("Password for user .*:", 5)
201+
result = probackup.expect(u"Password for user .*:", 5)
202202
if kill:
203203
probackup.kill(signal.SIGINT)
204204
elif result == 0:

0 commit comments

Comments
 (0)