1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-02 09:53:24 +02:00

fix auth_test

This commit is contained in:
s.logvinenko 2017-12-04 17:17:49 +03:00
parent 7e08ca7029
commit 3e290f0a16

View File

@ -122,7 +122,7 @@ class AuthTest(unittest.TestCase):
def modify_pg_hba(node):
hba_conf = os.path.join(node.data_dir, "pg_hba.conf")
with open(hba_conf, 'r+', encoding='utf-8') as fio:
with open(hba_conf, 'r+') as fio:
data = fio.read()
fio.seek(0)
fio.write('host\tall\tpostgres\t127.0.0.1/0\ttrust\n' + data)