test-check-py3-compat: don't run py2 part if $PYTHON is python3
authorYuya Nishihara <yuya@tcha.org>
Sun, 02 Sep 2018 16:23:34 +0900
changeset 39428 0cbcf962847e
parent 39427 213c0493cea0
child 39429 ecbab8be7470
test-check-py3-compat: don't run py2 part if $PYTHON is python3
contrib/python3-whitelist
tests/test-check-py3-compat.t
--- a/contrib/python3-whitelist	Sat Sep 01 18:00:38 2018 -0400
+++ b/contrib/python3-whitelist	Sun Sep 02 16:23:34 2018 +0900
@@ -56,6 +56,7 @@
 test-check-execute.t
 test-check-interfaces.py
 test-check-module-imports.t
+test-check-py3-compat.t
 test-check-pyflakes.t
 test-check-pylint.t
 test-check-shbang.t
--- a/tests/test-check-py3-compat.t	Sat Sep 01 18:00:38 2018 -0400
+++ b/tests/test-check-py3-compat.t	Sun Sep 02 16:23:34 2018 +0900
@@ -3,6 +3,7 @@
   $ . "$TESTDIR/helpers-testrepo.sh"
   $ cd "$TESTDIR"/..
 
+#if no-py3k
   $ testrepohg files 'set:(**.py)' \
   > -X hgdemandimport/demandimportpy2.py \
   > -X mercurial/thirdparty/cbor \
@@ -21,6 +22,7 @@
   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
+#endif
 
 #if py3exe
   $ testrepohg files 'set:(**.py) - grep(pygments)' \