From df5562d2c78dca2607b7c13e32e6b0c1fb7d5d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 10 Feb 2016 19:24:22 +0100 Subject: [PATCH] tests: fix rename test to report FAIL instead of ERROR when really failed --- qubes/tests/int/basic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubes/tests/int/basic.py b/qubes/tests/int/basic.py index 04cea94f..9be4f245 100644 --- a/qubes/tests/int/basic.py +++ b/qubes/tests/int/basic.py @@ -252,8 +252,9 @@ class TC_01_Properties(qubes.tests.SystemTestsMixin, qubes.tests.QubesTestCase): name=vm2name, template=self.app.default_template, label='red') self.vm2.create_on_disk() - with self.assertRaises(qubes.exc.QubesException): - self.vm2.name = self.vmname + with self.assertNotRaises(OSError): + with self.assertRaises(qubes.exc.QubesException): + self.vm2.name = self.vmname class TC_02_QvmPrefs(qubes.tests.SystemTestsMixin, qubes.tests.QubesTestCase):