tests: fix misuse of self.assertNotRaises (#1163)

Fixes QubesOS/qubes-issues#1163
This commit is contained in:
Marek Marczykowski-Górecki 2015-09-30 22:26:15 +02:00
parent 7b9247efc5
commit 5043d17197
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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):