# HG changeset patch # User Yuya Nishihara # Date 2018-09-02 07:23:34 # Node ID 0cbcf962847e50326e47a3e60b277f710dc01c73 # Parent 213c0493cea01a3d8f0693037e0b0e85860f2109 test-check-py3-compat: don't run py2 part if $PYTHON is python3 diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -56,6 +56,7 @@ test-check-commit.t 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 diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -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)' \