Mercurial > hg
changeset 28729:fc2268b9a07c
py3: use absolute_import in silenttestrunner.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sat, 02 Apr 2016 18:16:12 +0300 |
parents | 8699c89f3ae9 |
children | 73437077753c |
files | tests/silenttestrunner.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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