diff tests/conftest.py @ 439:c0700c6d9545

tests: Fix crash in processing tests.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 27 Jun 2015 22:28:32 -0700
parents 2aa879d63133
children 456db44dcc53
line wrap: on
line diff
--- a/tests/conftest.py	Sat Jun 27 22:18:50 2015 -0700
+++ b/tests/conftest.py	Sat Jun 27 22:28:32 2015 -0700
@@ -324,14 +324,14 @@
 
 
 class CompareContext(object):
-    def __init__(self, path=None):
+    def __init__(self, path=None, t=None):
         self.path = path or ''
-        self.time = time.time()
+        self.time = t or time.time()
 
     def createChildContext(self, name):
         ctx = CompareContext(
                 path='%s/%s' % (self.path, name),
-                time=self.time)
+                t=self.time)
         return ctx