diff options
Diffstat (limited to 'tests/dbshell')
-rw-r--r-- | tests/dbshell/test_postgresql_psycopg2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dbshell/test_postgresql_psycopg2.py b/tests/dbshell/test_postgresql_psycopg2.py index 8e5af5f1f3..0d4f28554d 100644 --- a/tests/dbshell/test_postgresql_psycopg2.py +++ b/tests/dbshell/test_postgresql_psycopg2.py @@ -18,7 +18,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase): def _mock_subprocess_call(*args): self.subprocess_args = list(*args) if 'PGPASSFILE' in os.environ: - with open(os.environ['PGPASSFILE'], 'r') as f: + with open(os.environ['PGPASSFILE']) as f: self.pgpass = f.read().strip() # ignore line endings else: self.pgpass = None |