changeset 33918:eddca62d9e64

tests: ensure demandimport test uses absolute_import
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 15:50:53 -0400
parents 9ce139c9222f
children 5ed0be4d9df9
files tests/test-check-py3-compat.t tests/test-demandimport.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Tue Aug 22 15:16:58 2017 -0400
+++ b/tests/test-check-py3-compat.t	Tue Aug 22 15:50:53 2017 -0400
@@ -20,7 +20,6 @@
   contrib/python-zstandard/tests/test_module_attributes.py not using absolute_import
   contrib/python-zstandard/tests/test_train_dictionary.py not using absolute_import
   setup.py not using absolute_import
-  tests/test-demandimport.py not using absolute_import
 
 #if py3exe
   $ testrepohg files 'set:(**.py) - grep(pygments)' \
--- a/tests/test-demandimport.py	Tue Aug 22 15:16:58 2017 -0400
+++ b/tests/test-demandimport.py	Tue Aug 22 15:50:53 2017 -0400
@@ -1,4 +1,4 @@
-from __future__ import print_function
+from __future__ import absolute_import, print_function
 
 from mercurial import demandimport
 demandimport.enable()