py3: use absolute_import in silenttestrunner.py
authorRobert Stanca <robert.stanca7@gmail.com>
Sat, 02 Apr 2016 18:16:12 +0300
changeset 28729 fc2268b9a07c
parent 28728 8699c89f3ae9
child 28730 73437077753c
py3: use absolute_import in silenttestrunner.py
tests/silenttestrunner.py
tests/test-check-py3-compat.t
--- a/tests/silenttestrunner.py	Sat Apr 02 18:15:04 2016 +0300
+++ b/tests/silenttestrunner.py	Sat Apr 02 18:16:12 2016 +0300
@@ -1,4 +1,7 @@
-import unittest, sys, os
+from __future__ import absolute_import
+import unittest
+import sys
+import os
 
 def main(modulename):
     '''run the tests found in module, printing nothing when all tests pass'''
--- a/tests/test-check-py3-compat.t	Sat Apr 02 18:15:04 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sat Apr 02 18:16:12 2016 +0300
@@ -49,7 +49,6 @@
   tests/readlink.py requires print_function
   tests/revlog-formatv0.py not using absolute_import
   tests/run-tests.py not using absolute_import
-  tests/silenttestrunner.py not using absolute_import
   tests/silenttestrunner.py requires print_function
   tests/sitecustomize.py not using absolute_import
   tests/svn-safe-append.py not using absolute_import