summaryrefslogtreecommitdiff
path: root/regtest
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2018-10-21 21:58:20 -0400
committerAlbert Astals Cid <tsdgeos@yahoo.es>2018-11-18 09:53:40 +0000
commit60cf2c0fc385f2a8f60036136c957adf2193cdf9 (patch)
tree5f42fd35378f228e42c6f9fe4aba8c73c965d68a /regtest
parent5a266afcf314660a0bf8b3aeffb6308c1c66f805 (diff)
regtest: Enable new-style division everywhere.
Diffstat (limited to 'regtest')
-rw-r--r--regtest/Bisect.py2
-rw-r--r--regtest/Config.py2
-rw-r--r--regtest/HTMLReport.py2
-rw-r--r--regtest/InterruptibleQueue.py2
-rw-r--r--regtest/Printer.py2
-rw-r--r--regtest/TestReferences.py2
-rw-r--r--regtest/TestRun.py12
-rw-r--r--regtest/Timer.py2
-rw-r--r--regtest/Utils.py2
-rw-r--r--regtest/backends/__init__.py2
-rw-r--r--regtest/backends/cairo.py2
-rw-r--r--regtest/backends/postscript.py2
-rw-r--r--regtest/backends/splash.py2
-rw-r--r--regtest/backends/text.py2
-rw-r--r--regtest/builder/__init__.py2
-rw-r--r--regtest/builder/autotools.py2
-rw-r--r--regtest/commands/__init__.py2
-rw-r--r--regtest/commands/create-refs.py2
-rw-r--r--regtest/commands/create-report.py2
-rw-r--r--regtest/commands/find-regression.py2
-rw-r--r--regtest/commands/run-tests.py2
-rw-r--r--regtest/main.py2
22 files changed, 29 insertions, 25 deletions
diff --git a/regtest/Bisect.py b/regtest/Bisect.py
index bf8853d7..0782973d 100644
--- a/regtest/Bisect.py
+++ b/regtest/Bisect.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from builder import get_builder
from TestRun import TestRun
diff --git a/regtest/Config.py b/regtest/Config.py
index 6d4e11b8..0e2b0bc9 100644
--- a/regtest/Config.py
+++ b/regtest/Config.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
class Config:
diff --git a/regtest/HTMLReport.py b/regtest/HTMLReport.py
index b299e740..c1867119 100644
--- a/regtest/HTMLReport.py
+++ b/regtest/HTMLReport.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from backends import get_backend, get_all_backends
from Config import Config
diff --git a/regtest/InterruptibleQueue.py b/regtest/InterruptibleQueue.py
index 40514061..13156a96 100644
--- a/regtest/InterruptibleQueue.py
+++ b/regtest/InterruptibleQueue.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from threading import Lock, Condition
from collections import deque
diff --git a/regtest/Printer.py b/regtest/Printer.py
index 060daff8..5c4563a8 100644
--- a/regtest/Printer.py
+++ b/regtest/Printer.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
import sys
from Config import Config
diff --git a/regtest/TestReferences.py b/regtest/TestReferences.py
index 1d6c0f22..68cd67ac 100644
--- a/regtest/TestReferences.py
+++ b/regtest/TestReferences.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
import os
import errno
diff --git a/regtest/TestRun.py b/regtest/TestRun.py
index a729914b..8f9011e6 100644
--- a/regtest/TestRun.py
+++ b/regtest/TestRun.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from backends import get_backend, get_all_backends
from Config import Config
@@ -279,7 +279,8 @@ class TestRun:
if self._exited_early:
self.printer.printout_ln("Testing exited early")
self.printer.printout_ln()
- self.printer.printout_ln("%d tests passed (%.2f%%)" % (self._n_passed, (self._n_passed * 100.) / self._n_run))
+ self.printer.printout_ln("%d tests passed (%.2f%%)" % (
+ self._n_passed, (self._n_passed * 100) / self._n_run))
self.printer.printout_ln()
def result_tests(test_dict):
@@ -300,7 +301,8 @@ class TestRun:
percs = []
for backend in test_dict:
n_docs = len(test_dict[backend])
- percs.append("%d %s (%.2f%%)" % (n_docs, backend, (n_docs * 100.) / n_tests))
+ percs.append("%d %s (%.2f%%)" % (n_docs, backend,
+ n_docs * 100 / n_tests))
return ", ".join(percs)
test_results = [(self._failed, "unexpected failures"),
@@ -315,7 +317,9 @@ class TestRun:
if n_tests == 0:
continue
- self.printer.printout_ln("%d %s (%.2f%%) [%s]" % (n_tests, test_msg, (n_tests * 100.) / self._n_run, backends_summary(test_dict, n_tests)))
+ self.printer.printout_ln("%d %s (%.2f%%) [%s]" % (
+ n_tests, test_msg, n_tests * 100 / self._n_run,
+ backends_summary(test_dict, n_tests)))
self.printer.printout_ln(tests)
self.printer.printout_ln()
else:
diff --git a/regtest/Timer.py b/regtest/Timer.py
index 0dcd772b..069dd918 100644
--- a/regtest/Timer.py
+++ b/regtest/Timer.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from time import time, strftime, gmtime
diff --git a/regtest/Utils.py b/regtest/Utils.py
index dce113fa..20efc3ab 100644
--- a/regtest/Utils.py
+++ b/regtest/Utils.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
import os
diff --git a/regtest/backends/__init__.py b/regtest/backends/__init__.py
index ab5ac915..c44b3556 100644
--- a/regtest/backends/__init__.py
+++ b/regtest/backends/__init__.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
import hashlib
import os
diff --git a/regtest/backends/cairo.py b/regtest/backends/cairo.py
index 6e4d7452..3532cf50 100644
--- a/regtest/backends/cairo.py
+++ b/regtest/backends/cairo.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/backends/postscript.py b/regtest/backends/postscript.py
index d73048e7..ff46837d 100644
--- a/regtest/backends/postscript.py
+++ b/regtest/backends/postscript.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/backends/splash.py b/regtest/backends/splash.py
index 9c68bd2f..b606ba68 100644
--- a/regtest/backends/splash.py
+++ b/regtest/backends/splash.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/backends/text.py b/regtest/backends/text.py
index d345183d..62269f0d 100644
--- a/regtest/backends/text.py
+++ b/regtest/backends/text.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/builder/__init__.py b/regtest/builder/__init__.py
index 5cbd2f54..09b001c9 100644
--- a/regtest/builder/__init__.py
+++ b/regtest/builder/__init__.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from Config import Config
import os
diff --git a/regtest/builder/autotools.py b/regtest/builder/autotools.py
index e96366c0..067da0a3 100644
--- a/regtest/builder/autotools.py
+++ b/regtest/builder/autotools.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from builder import Builder, register_builder
import os
diff --git a/regtest/commands/__init__.py b/regtest/commands/__init__.py
index e77843bf..5daf7b03 100644
--- a/regtest/commands/__init__.py
+++ b/regtest/commands/__init__.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
import argparse
diff --git a/regtest/commands/create-refs.py b/regtest/commands/create-refs.py
index 201979d2..4ec3688a 100644
--- a/regtest/commands/create-refs.py
+++ b/regtest/commands/create-refs.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from commands import Command, register_command
from TestReferences import TestReferences
diff --git a/regtest/commands/create-report.py b/regtest/commands/create-report.py
index 6f457662..2e852b17 100644
--- a/regtest/commands/create-report.py
+++ b/regtest/commands/create-report.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from commands import Command, register_command
from HTMLReport import HTMLReport
diff --git a/regtest/commands/find-regression.py b/regtest/commands/find-regression.py
index 5c119a9f..6a116209 100644
--- a/regtest/commands/find-regression.py
+++ b/regtest/commands/find-regression.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from commands import Command, register_command
from Bisect import Bisect
diff --git a/regtest/commands/run-tests.py b/regtest/commands/run-tests.py
index bf7ec3f8..4baf057f 100644
--- a/regtest/commands/run-tests.py
+++ b/regtest/commands/run-tests.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
from commands import Command, register_command
from TestRun import TestRun
diff --git a/regtest/main.py b/regtest/main.py
index 0a88a91a..85d5fb5e 100644
--- a/regtest/main.py
+++ b/regtest/main.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, division, print_function
import sys
import argparse