diff tests/test-check-py3-compat.t @ 33530:05e3fa254b6b

demandimport: drop Py3 workarounds from Py2 implementation
author Yuya Nishihara <yuya@tcha.org>
date Sun, 16 Jul 2017 17:19:22 +0900
parents ddd65b4f3ae6
children 078099304772
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Sun Jul 16 17:16:32 2017 +0900
+++ b/tests/test-check-py3-compat.t	Sun Jul 16 17:19:22 2017 +0900
@@ -3,8 +3,9 @@
   $ . "$TESTDIR/helpers-testrepo.sh"
   $ cd "$TESTDIR"/..
 
-  $ testrepohg files 'set:(**.py)' | sed 's|\\|/|g' \
-  > | xargs $PYTHON contrib/check-py3-compat.py
+  $ testrepohg files 'set:(**.py)' \
+  > -X hgdemandimport/demandimportpy2.py \
+  > | sed 's|\\|/|g' | xargs $PYTHON contrib/check-py3-compat.py
   contrib/python-zstandard/setup.py not using absolute_import
   contrib/python-zstandard/setup_zstd.py not using absolute_import
   contrib/python-zstandard/tests/common.py not using absolute_import
@@ -24,6 +25,7 @@
 
 #if py3exe
   $ testrepohg files 'set:(**.py) - grep(pygments)' \
+  > -X hgdemandimport/demandimportpy2.py \
   > -X hgext/fsmonitor/pywatchman \
   > | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py \
   > | sed 's/[0-9][0-9]*)$/*)/'