summaryrefslogtreecommitdiff
path: root/tests/dbshell
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-01-27 08:30:20 -0800
committerTim Graham <timograham@gmail.com>2019-01-27 17:41:43 -0500
commit7e3bf2662b5dedeb47856adc18a9378e2d10a599 (patch)
tree02f26e09739493958db05003060a48a0acfa885c /tests/dbshell
parentce7293bc91e993cd695d15e664126470c401eed6 (diff)
downloaddjango-7e3bf2662b5dedeb47856adc18a9378e2d10a599.tar.gz
Removed default mode='r' argument from calls to open().
Diffstat (limited to 'tests/dbshell')
-rw-r--r--tests/dbshell/test_postgresql_psycopg2.py2
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