# HG changeset patch # User Yuya Nishihara # Date 1535873014 -32400 # Node ID 0cbcf962847e50326e47a3e60b277f710dc01c73 # Parent 213c0493cea01a3d8f0693037e0b0e85860f2109 test-check-py3-compat: don't run py2 part if $PYTHON is python3 diff -r 213c0493cea0 -r 0cbcf962847e contrib/python3-whitelist --- 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 diff -r 213c0493cea0 -r 0cbcf962847e tests/test-check-py3-compat.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)' \