applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git] / test / execution / resource.py
index 188dbaf..0945e9b 100755 (executable)
@@ -130,7 +130,7 @@ class ErrorApplication(ResourceManager):
             self.ec.schedule("0.5s", self.deploy)
         else:
             time.sleep(random.random() * 2)
-            raise RuntimeError, "NOT A REAL ERROR. JUST TESTING"
+            raise RuntimeError("NOT A REAL ERROR. JUST TESTING")
 
 class ResourceFactoryTestCase(unittest.TestCase):
     def test_add_resource_factory(self):