Skip to content

Commit 6b23657

Browse files
s.logvinenkos.logvinenko
authored andcommitted
fix auth_test
fix unsetenv
1 parent 45d38d6 commit 6b23657

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/auth_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def setUpClass(cls):
6666
GRANT EXECUTE ON FUNCTION txid_snapshot_xmax(txid_snapshot) TO backup; \
6767
GRANT EXECUTE ON FUNCTION pg_ptrack_clear() TO backup; \
6868
GRANT EXECUTE ON FUNCTION pg_ptrack_get_and_clear(oid, oid) TO backup;")
69+
cls.pgpass_file = os.path.join(os.path.expanduser('~'), '.pgpass')
6970

7071
@classmethod
7172
def tearDownClass(cls):
@@ -82,7 +83,7 @@ def setUp(self):
8283
'-U', 'backup',
8384
'-b', 'FULL'
8485
]
85-
self.pgpass_file = os.path.join(os.path.expanduser('~'), '.pgpass')
86+
os.unsetenv("PGPASSWORD")
8687
try:
8788
os.remove(self.pgpass_file)
8889
except OSError:

0 commit comments

Comments
 (0)