Mercurial > hg-stable
changeset 29195:bdba6a2015d0
py3: make tests/svn-safe-append.py use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 16 May 2016 04:31:20 +0530 |
parents | 3bea82dd4c4e |
children | c5f9ff302065 |
files | tests/svn-safe-append.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/svn-safe-append.py Mon May 16 04:28:22 2016 +0530 +++ b/tests/svn-safe-append.py Mon May 16 04:31:20 2016 +0530 @@ -1,9 +1,12 @@ #!/usr/bin/env python +from __future__ import absolute_import + __doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b. Without this svn will not detect workspace changes.""" -import sys, os +import os +import sys text = sys.argv[1] fname = sys.argv[2]
--- a/tests/test-check-py3-compat.t Mon May 16 04:28:22 2016 +0530 +++ b/tests/test-check-py3-compat.t Mon May 16 04:31:20 2016 +0530 @@ -29,7 +29,6 @@ tests/md5sum.py not using absolute_import tests/readlink.py not using absolute_import tests/run-tests.py not using absolute_import - tests/svn-safe-append.py not using absolute_import tests/test-demandimport.py not using absolute_import #if py3exe