Mercurial > hg
changeset 39401:0cbcf962847e
test-check-py3-compat: don't run py2 part if $PYTHON is python3
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 02 Sep 2018 16:23:34 +0900 |
parents | 213c0493cea0 |
children | ecbab8be7470 |
files | contrib/python3-whitelist tests/test-check-py3-compat.t |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)' \