Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asyncpg/connect_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def _parse_connect_dsn_and_args(*, dsn, host, port, user,
server_settings = {**query, **server_settings}

if connection_service_file is not None and service is not None:
pg_service = configparser.ConfigParser()
pg_service = configparser.ConfigParser(interpolation=None)
pg_service.read(connection_service_file)
if service in pg_service.sections():
service_params = pg_service[service]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ def test_connect_connection_service_file(self):
host=somehost
database=test_dbname
user=admin
password=test_password
password=test%password
target_session_attrs=primary
krbsrvname=fakekrbsrvname
gsslib=sspi
Expand Down Expand Up @@ -1322,7 +1322,7 @@ def test_connect_connection_service_file(self):
[('somehost', 5433)],
{
'user': 'admin',
'password': 'test_password',
'password': 'test%password',
'database': 'test_dbname',
'target_session_attrs': 'primary',
'krbsrvname': 'fakekrbsrvname',
Expand Down