Explicitly casted a str to a str to please pylint

This commit is contained in:
Alex Meade
2011-05-06 10:02:21 -04:00
parent a8ed162bc5
commit 987b90be1e

View File

@@ -642,7 +642,7 @@ class LibvirtConnTestCase(test.TestCase):
try:
conn.spawn(instance, network_info)
except Exception, e:
count = (0 <= e.message.find('Unexpected method call'))
count = (0 <= str(e.message).find('Unexpected method call'))
self.assertTrue(count)