# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1600337839 -19800 # Node ID 6916e6b81fef2158afbdf235acc826c81649d149 # Parent 5f0eeda2005d986d02c702961813170d97f1e399 tests: run test-check-py3-compat only in pure python mode This test was added few years ago to detect syntax and import related warnings and kickstart the python-3 porting efforts. It tries to parse the ast and import the module. When using in strict modes like `HGMODULEPOLICY=rust` or `HGMODULEPOLICY=c`, the test fails. Let's run the test only on pure python mode. We now have full test suite being run with python 3 and some people even use hg with python 3 in production (like me). diff -r 5f0eeda2005d -r 6916e6b81fef tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Sat Sep 12 07:23:47 2020 +0900 +++ b/tests/test-check-py3-compat.t Thu Sep 17 15:47:19 2020 +0530 @@ -1,4 +1,4 @@ -#require test-repo +#require test-repo pure $ . "$TESTDIR/helpers-testrepo.sh" $ cd "$TESTDIR"/..