diff options
author | Petr Šplíchal <psplicha@redhat.com> | 2011-11-14 11:07:52 +0100 |
---|---|---|
committer | Petr Šplíchal <psplicha@redhat.com> | 2011-11-14 11:07:52 +0100 |
commit | c80d6f4c552ae281b2e429fb63619b9d55e77c84 (patch) | |
tree | 99820717a40c260917ab7a5747c7d2fe8d8ac949 | |
parent | ac2ca76083e1bd0403ce6457d7e2c0ae662e2073 (diff) | |
download | python-nitrate-c80d6f4c552ae281b2e429fb63619b9d55e77c84.tar.gz python-nitrate-c80d6f4c552ae281b2e429fb63619b9d55e77c84.tar.xz python-nitrate-c80d6f4c552ae281b2e429fb63619b9d55e77c84.zip |
Nitrate: Fix inequality against non-Nitrate objects, log fix
-rw-r--r-- | Nitrate.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |