We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d38d6 commit 6b23657Copy full SHA for 6b23657
tests/auth_test.py
@@ -66,6 +66,7 @@ def setUpClass(cls):
66
GRANT EXECUTE ON FUNCTION txid_snapshot_xmax(txid_snapshot) TO backup; \
67
GRANT EXECUTE ON FUNCTION pg_ptrack_clear() TO backup; \
68
GRANT EXECUTE ON FUNCTION pg_ptrack_get_and_clear(oid, oid) TO backup;")
69
+ cls.pgpass_file = os.path.join(os.path.expanduser('~'), '.pgpass')
70
71
@classmethod
72
def tearDownClass(cls):
@@ -82,7 +83,7 @@ def setUp(self):
82
83
'-U', 'backup',
84
'-b', 'FULL'
85
]
- self.pgpass_file = os.path.join(os.path.expanduser('~'), '.pgpass')
86
+ os.unsetenv("PGPASSWORD")
87
try:
88
os.remove(self.pgpass_file)
89
except OSError:
0 commit comments