From 08361f18c632a84e8be641cf24f226ba56fe70c8 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Sat, 13 Jul 2013 22:24:59 +1200 Subject: Deal with Python 3 rejecting comparisons between None and None. --- testrepository/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1