From c70ad5009daefa90b17f93fe0d66d48cef66113a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 1 Feb 2018 22:17:15 +0100 Subject: openpgp: Use assertion for home-after-close() --- tests/test_openpgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_openpgp.py') diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py index bbb6a8e..981f550 100644 --- a/tests/test_openpgp.py +++ b/tests/test_openpgp.py @@ -791,7 +791,7 @@ class OpenPGPContextManagerTest(unittest.TestCase): def test_home_after_close(self): with gemato.openpgp.OpenPGPEnvironment() as env: env.close() - with self.assertRaises(RuntimeError): + with self.assertRaises(AssertionError): env.home -- cgit v1.2.3