summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Šplíchal <psplicha@redhat.com>2011-11-14 11:07:52 +0100
committerPetr Šplíchal <psplicha@redhat.com>2011-11-14 11:07:52 +0100
commitc80d6f4c552ae281b2e429fb63619b9d55e77c84 (patch)
tree99820717a40c260917ab7a5747c7d2fe8d8ac949
parentac2ca76083e1bd0403ce6457d7e2c0ae662e2073 (diff)
downloadpython-nitrate-c80d6f4c552ae281b2e429fb63619b9d55e77c84.zip
python-nitrate-c80d6f4c552ae281b2e429fb63619b9d55e77c84.tar.gz
python-nitrate-c80d6f4c552ae281b2e429fb63619b9d55e77c84.tar.xz
Nitrate: Fix inequality against non-Nitrate objects, log fix
-rw-r--r--Nitrate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Nitrate.py b/Nitrate.py
index ce94fe0..593d5f9 100644
--- a/Nitrate.py
+++ b/Nitrate.py
@@ -447,6 +447,7 @@ class Nitrate(object):
def __ne__(self, other):
""" Handle object inequality based on its id. """
+ if not isinstance(other, Nitrate): return True
return self.id != other.id
def __hash__(self):
@@ -2378,6 +2379,7 @@ class TestRun(Mutable):
log.error(pretty(testrunhash))
raise NitrateError("Failed to create test run")
self._get(testrunhash=testrunhash)
+ log.info("Successfully created {0}".format(self))
def _get(self, testrunhash=None):
""" Initialize / refresh test run data.