Anonymous avatar Anonymous committed 7cfb09f

Fix typos in JobTests.py

Comments (0)

Files changed (1)

src/scons/JobTests.py

         # simulate blocking tasks
         return self.num_iterated - self.num_executed >= max(num_jobs/2, 2)
 
-    def tasks_where_serial(self):
+    def tasks_were_serial(self):
         "analyze the task order to see if they were serial"
-        serial = 1 # assume the tasks where serial
+        serial = 1 # assume the tasks were serial
         for i in range(num_tasks):
             serial = serial and (self.begin_list[i]
                                  == self.end_list[i]
         for job in jobs:
             job.wait()
 
-        self.failUnless(not taskmaster.tasks_where_serial(),
-                        "the tasks where not executed in parallel")
+        self.failUnless(not taskmaster.tasks_were_serial(),
+                        "the tasks were not executed in parallel")
         self.failUnless(taskmaster.all_tasks_are_executed(),
-                        "all the tests where not executed")
+                        "all the tests were not executed")
         self.failUnless(taskmaster.all_tasks_are_iterated(),
-                        "all the tests where not iterated over")
+                        "all the tests were not iterated over")
 
 class SerialTestCase(unittest.TestCase):
     def runTest(self):
         taskmaster = Taskmaster(num_tasks, self)
         job = scons.Job.Serial(taskmaster)
         job.start()
-        self.failUnless(taskmaster.tasks_where_serial(),
-                        "the tasks where not executed in series")
+        self.failUnless(taskmaster.tasks_were_serial(),
+                        "the tasks were not executed in series")
         self.failUnless(taskmaster.all_tasks_are_executed(),
-                        "all the tests where not executed")
+                        "all the tests were not executed")
         self.failUnless(taskmaster.all_tasks_are_iterated(),
-                        "all the tests where not iterated over")
+                        "all the tests were not iterated over")
 
 def suite():
     suite = unittest.TestSuite()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.