subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1743595 - /subversion/trunk/build/run_tests.py
Date Fri, 13 May 2016 02:37:38 GMT
Author: stefan2
Date: Fri May 13 02:37:38 2016
New Revision: 1743595

URL: http://svn.apache.org/viewvc?rev=1743595&view=rev
Log:
Follow-up to r1743556:

* build/run_tests.py
  (TestHarness._run_c_test.progress_func,
   TestHarness._run_py_test.progress_func): Use integer division. 

Suggested by: brane

Modified:
    subversion/trunk/build/run_tests.py

Modified: subversion/trunk/build/run_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1743595&r1=1743594&r2=1743595&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Fri May 13 02:37:38 2016
@@ -781,7 +781,7 @@ class TestHarness:
     def progress_func(completed):
       if not self.log or self.dots_written >= dot_count:
         return
-      dots = (int)((completed * dot_count) / total)
+      dots = (completed * dot_count) // total
       if dots > dot_count:
         dots = dot_count
       dots_to_write = dots - self.dots_written
@@ -839,7 +839,7 @@ class TestHarness:
          in parallel mode."""
       if not self.log:
         return
-      dots = int((completed * dot_count) / total)
+      dots = (completed * dot_count) // total
       if dots > dot_count:
         dots = dot_count
       self.progress_lock.acquire()



Mime
View raw message