Patchwork [09,of,10,V3] tests: use absolute_import in silenttestrunner.py

login
register
mail settings
Submitter roby roby
Date April 2, 2016, 3:37 p.m.
Message ID <62c51638a70f257f991a.1459611461@roby>
Download mbox | patch
Permalink /patch/14263/
State Accepted
Headers show

Comments

roby roby - April 2, 2016, 3:37 p.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459610172 -10800
#      Sat Apr 02 18:16:12 2016 +0300
# Node ID 62c51638a70f257f991a40ebb0fd943f5f968c2e
# Parent  b241e1b0332e0477f6dec098609b658180cf83fc
tests: use absolute_import in silenttestrunner.py

Patch

diff -r b241e1b0332e -r 62c51638a70f tests/silenttestrunner.py
--- 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'''
diff -r b241e1b0332e -r 62c51638a70f tests/test-check-py3-compat.t
--- 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
@@ -51,7 +51,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