Mercurial > hg
comparison tests/run-tests.py @ 48862:2336e79a119c
tests: remove Python 3 conditionalizing from variables
Differential Revision: https://phab.mercurial-scm.org/D12240
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 13:23:21 -0700 |
parents | 7265e5b1d18e |
children | c76255cde807 |
comparison
equal
deleted
inserted
replaced
48861:7265e5b1d18e | 48862:2336e79a119c |
---|---|
3673 setup_opts = b"--rust" | 3673 setup_opts = b"--rust" |
3674 elif self.options.no_rust: | 3674 elif self.options.no_rust: |
3675 setup_opts = b"--no-rust" | 3675 setup_opts = b"--no-rust" |
3676 | 3676 |
3677 # Run installer in hg root | 3677 # Run installer in hg root |
3678 script = os.path.realpath(sys.argv[0]) | 3678 compiler = _sys2bytes(compiler) |
3679 exe = sysexecutable | 3679 script = _sys2bytes(os.path.realpath(sys.argv[0])) |
3680 if PYTHON3: | 3680 exe = _sys2bytes(sysexecutable) |
3681 compiler = _sys2bytes(compiler) | |
3682 script = _sys2bytes(script) | |
3683 exe = _sys2bytes(exe) | |
3684 hgroot = os.path.dirname(os.path.dirname(script)) | 3681 hgroot = os.path.dirname(os.path.dirname(script)) |
3685 self._hgroot = hgroot | 3682 self._hgroot = hgroot |
3686 os.chdir(hgroot) | 3683 os.chdir(hgroot) |
3687 nohome = b'--home=""' | 3684 nohome = b'--home=""' |
3688 if WINDOWS: | 3685 if WINDOWS: |