[tor-commits] [ooni-probe/master] Fix bug in initializing of the test instance.

art at torproject.org art at torproject.org
Fri Mar 7 12:30:58 UTC 2014


commit efb85aed9a4797914587a319c7b8e86fea86c7ab
Author: Arturo Filastò <art at fuffa.org>
Date:   Sat Mar 1 19:02:28 2014 +0100

    Fix bug in initializing of the test instance.
---
 ooni/tasks.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ooni/tasks.py b/ooni/tasks.py
index efca9b0..9c76a04 100644
--- a/ooni/tasks.py
+++ b/ooni/tasks.py
@@ -105,11 +105,11 @@ class Measurement(TaskWithTimeout):
         """
         self.testInstance = test_instance
         self.testInstance.input = test_input
+        self.testInstance._setUp()
         if 'input' not in self.testInstance.report.keys():
             self.testInstance.report = {'input': test_input}
-            self.testInstance._setUp()
-            self.testInstance._start_time = time.time()
-            self.testInstance.setUp()
+        self.testInstance._start_time = time.time()
+        self.testInstance.setUp()
 
         self.netTestMethod = getattr(self.testInstance, test_method)
 





More information about the tor-commits mailing list