migration to python3 (#1)
Change-Id: I964b75c1316b7711cde905c6e98ea027a8557047
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
diff --git a/src/emuvim/test/unittests/test_resourcemodel.py b/src/emuvim/test/unittests/test_resourcemodel.py
index c0cf0c4..8ce8b13 100755
--- a/src/emuvim/test/unittests/test_resourcemodel.py
+++ b/src/emuvim/test/unittests/test_resourcemodel.py
@@ -211,7 +211,7 @@
rm.allocate(c8) # calculate allocation
rm.allocate(c9) # calculate allocation
except NotEnoughResourcesAvailable as e:
- self.assertIn("Not enough compute", e.message)
+ self.assertIn("Not enough compute", str(e))
exception = True
self.assertTrue(exception)
@@ -241,7 +241,7 @@
rm.allocate(c7) # calculate allocation
rm.allocate(c8) # calculate allocation
except NotEnoughResourcesAvailable as e:
- self.assertIn("Not enough memory", e.message)
+ self.assertIn("Not enough memory", str(e))
exception = True
self.assertTrue(exception)