##// END OF EJS Templates
tests: save the original PATH and PYTHONPATH variables...
tests: save the original PATH and PYTHONPATH variables When running the tests, define ORIG_PATH and ORIG_PYTHONPATH environment variables that contain the original contents of PATH and PYTHONPATH, before they were modified by run-tests.py This will make it possible for tests to refer to the original contents of these variables if necessary. In particular, this is necessary for invoking the correct version of hg for examining the local repository (the mercurial repository itself, not the temporary test repositories). Various tests examine the local repository to check the file lists and contents of commit messages.

File last commit:

r32940:75be1499 default
r33115:fa9a90d5 default
Show More
test-check-py3-compat.t
44 lines | 2.7 KiB | text/troff | Tads3Lexer
/ tests / test-check-py3-compat.t
Gregory Szorc
tests: add test for Python 3 compatibility...
r27279 #require test-repo
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
Gregory Szorc
tests: add test for Python 3 compatibility...
r27279 $ cd "$TESTDIR"/..
Augie Fackler
cleanup: use $PYTHON to run python in many more tests...
r32940 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON contrib/check-py3-compat.py
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 contrib/python-zstandard/setup.py not using absolute_import
contrib/python-zstandard/setup_zstd.py not using absolute_import
contrib/python-zstandard/tests/common.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.8.0...
r31796 contrib/python-zstandard/tests/test_buffer_util.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 contrib/python-zstandard/tests/test_compressor.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.8.0...
r31796 contrib/python-zstandard/tests/test_compressor_fuzzing.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 contrib/python-zstandard/tests/test_data_structures.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.8.0...
r31796 contrib/python-zstandard/tests/test_data_structures_fuzzing.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 contrib/python-zstandard/tests/test_decompressor.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.8.0...
r31796 contrib/python-zstandard/tests/test_decompressor_fuzzing.py not using absolute_import
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 contrib/python-zstandard/tests/test_estimate_sizes.py not using absolute_import
contrib/python-zstandard/tests/test_module_attributes.py not using absolute_import
contrib/python-zstandard/tests/test_train_dictionary.py not using absolute_import
Gregory Szorc
tests: add test for Python 3 compatibility...
r27279 i18n/check-translation.py not using absolute_import
setup.py not using absolute_import
tests/test-demandimport.py not using absolute_import
Gregory Szorc
tests: perform an ast parse with Python 3...
r28583
#if py3exe
Pulkit Goyal
py3: exclude pywatchman from test-check-py3-compat.t...
r30673 $ hg files 'set:(**.py) - grep(pygments)' -X hgext/fsmonitor/pywatchman \
> | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py \
Yuya Nishihara
py3: automatically glob out line numbers from check-py3-compat output...
r29810 > | sed 's/[0-9][0-9]*)$/*)/'
Martin von Zweigbergk
tests: allow ModuleNotFoundError in addition to ImportError...
r31480 hgext/convert/transport.py: error importing: <*Error> No module named 'svn.client' (error at transport.py:*) (glob)
Pulkit Goyal
py3: update test-check-py3-compat.t
r32522 mercurial/cffi/bdiff.py: error importing: <ImportError> cannot import name '_bdiff' (error at bdiff.py:*)
mercurial/cffi/bdiffbuild.py: error importing: <ImportError> No module named 'cffi' (error at bdiffbuild.py:*)
mercurial/cffi/mpatch.py: error importing: <ImportError> cannot import name '_mpatch' (error at mpatch.py:*)
mercurial/cffi/mpatchbuild.py: error importing: <ImportError> No module named 'cffi' (error at mpatchbuild.py:*)
mercurial/cffi/osutilbuild.py: error importing: <ImportError> No module named 'cffi' (error at osutilbuild.py:*)
Martin von Zweigbergk
tests: allow ModuleNotFoundError in addition to ImportError...
r31480 mercurial/scmwindows.py: error importing: <*Error> No module named 'msvcrt' (error at win32.py:*) (glob)
mercurial/win32.py: error importing: <*Error> No module named 'msvcrt' (error at win32.py:*) (glob)
mercurial/windows.py: error importing: <*Error> No module named 'msvcrt' (error at windows.py:*) (glob)
Gregory Szorc
tests: perform an ast parse with Python 3...
r28583
#endif
Augie Fackler
py3: split check of pygments-using files from the rest of the tree...
r29886
#if py3exe py3pygments
$ hg files 'set:(**.py) and grep(pygments)' | sed 's|\\|/|g' \
> | xargs $PYTHON3 contrib/check-py3-compat.py \
> | sed 's/[0-9][0-9]*)$/*)/'
#endif