mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
fix auth_test
fix unsetenv
This commit is contained in:
+2
-1
@@ -66,6 +66,7 @@ class AuthTest(unittest.TestCase):
|
|||||||
GRANT EXECUTE ON FUNCTION txid_snapshot_xmax(txid_snapshot) TO backup; \
|
GRANT EXECUTE ON FUNCTION txid_snapshot_xmax(txid_snapshot) TO backup; \
|
||||||
GRANT EXECUTE ON FUNCTION pg_ptrack_clear() TO backup; \
|
GRANT EXECUTE ON FUNCTION pg_ptrack_clear() TO backup; \
|
||||||
GRANT EXECUTE ON FUNCTION pg_ptrack_get_and_clear(oid, oid) TO backup;")
|
GRANT EXECUTE ON FUNCTION pg_ptrack_get_and_clear(oid, oid) TO backup;")
|
||||||
|
cls.pgpass_file = os.path.join(os.path.expanduser('~'), '.pgpass')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
@@ -82,7 +83,7 @@ class AuthTest(unittest.TestCase):
|
|||||||
'-U', 'backup',
|
'-U', 'backup',
|
||||||
'-b', 'FULL'
|
'-b', 'FULL'
|
||||||
]
|
]
|
||||||
self.pgpass_file = os.path.join(os.path.expanduser('~'), '.pgpass')
|
os.unsetenv("PGPASSWORD")
|
||||||
try:
|
try:
|
||||||
os.remove(self.pgpass_file)
|
os.remove(self.pgpass_file)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|||||||
Reference in New Issue
Block a user