This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-test by this push:
     new 6adae28  fixup! Support k8s auth method in Vault Secrets provider 
(#8640)
6adae28 is described below

commit 6adae28cb1447b056dfe1f5dc58eb3758dcf3e4d
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Jun 25 16:45:51 2020 +0100

    fixup! Support k8s auth method in Vault Secrets provider (#8640)
---
 tests/contrib/secrets/test_hashicorp_vault.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/contrib/secrets/test_hashicorp_vault.py 
b/tests/contrib/secrets/test_hashicorp_vault.py
index 772bf6e..f027ad7 100644
--- a/tests/contrib/secrets/test_hashicorp_vault.py
+++ b/tests/contrib/secrets/test_hashicorp_vault.py
@@ -254,5 +254,10 @@ class TestVaultSecrets(TestCase):
             "url": "http://127.0.0.1:8200";,
         }
 
-        with six.assertRaisesRegex(self, FileNotFoundError, path):
+        if six.PY2:
+            error_ = IOError
+        else:
+            error_ = FileNotFoundError
+
+        with six.assertRaisesRegex(self, error_, path):
             VaultBackend(**kwargs).get_connections(conn_id='test')

Reply via email to