From 5043d17197b47af3364ba664a55d2bc1a266a444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 30 Sep 2015 22:26:15 +0200 Subject: [PATCH] tests: fix misuse of self.assertNotRaises (#1163) Fixes QubesOS/qubes-issues#1163 --- tests/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic.py b/tests/basic.py index 4cc662ce..6d36232d 100644 --- a/tests/basic.py +++ b/tests/basic.py @@ -98,7 +98,7 @@ class TC_01_Properties(qubes.tests.SystemTestsMixin, qubes.tests.QubesTestCase): os.path.join(os.getenv("HOME"), ".local/share/applications", self.vmname + "-firefox.desktop"))) self.assertEquals(pre_rename_firewall, self.vm.get_firewall_conf()) - with self.assertNotRaises(QubesException, OSError): + with self.assertNotRaises((QubesException, OSError)): self.vm.write_firewall_conf({'allow': False}) def test_010_netvm(self):