tests: ensure demandimport test uses absolute_import
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 15:50:53 -0400
changeset 33918 eddca62d9e64
parent 33917 9ce139c9222f
child 33919 5ed0be4d9df9
tests: ensure demandimport test uses absolute_import
tests/test-check-py3-compat.t
tests/test-demandimport.py
--- 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()