diff options
author | Robert Collins <robertc@robertcollins.net> | 2013-07-13 22:24:59 +1200 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2013-07-13 22:24:59 +1200 |
commit | 08361f18c632a84e8be641cf24f226ba56fe70c8 (patch) | |
tree | 9fc4e029d75c7c7a0b2a1ff5a5c41a3e12735766 | |
parent | d603adf5ce676e4a59a3beece8ce49ec5b91f1b2 (diff) | |
download | testrepository-08361f18c632a84e8be641cf24f226ba56fe70c8.tar.gz |
Deal with Python 3 rejecting comparisons between None and None.
-rw-r--r-- | testrepository/results.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testrepository/results.py b/testrepository/results.py index 8938314..ed01856 100644 --- a/testrepository/results.py +++ b/testrepository/results.py @@ -29,7 +29,7 @@ class SummarizingResult(StreamSummary): self._last_time = None def status(self, *args, **kwargs): - if 'timestamp' in kwargs: + if kwargs.get('timestamp') is not None: timestamp = kwargs['timestamp'] if self._last_time is None: self._first_time = timestamp |