tests: fix misuse of self.assertNotRaises (#1163)
Fixes QubesOS/qubes-issues#1163
This commit is contained in:
parent
7b9247efc5
commit
5043d17197
@ -98,7 +98,7 @@ class TC_01_Properties(qubes.tests.SystemTestsMixin, qubes.tests.QubesTestCase):
|
|||||||
os.path.join(os.getenv("HOME"), ".local/share/applications",
|
os.path.join(os.getenv("HOME"), ".local/share/applications",
|
||||||
self.vmname + "-firefox.desktop")))
|
self.vmname + "-firefox.desktop")))
|
||||||
self.assertEquals(pre_rename_firewall, self.vm.get_firewall_conf())
|
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})
|
self.vm.write_firewall_conf({'allow': False})
|
||||||
|
|
||||||
def test_010_netvm(self):
|
def test_010_netvm(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user