view tox.ini @ 224:2ab42323f149

client: handle commit messages with \0 characters for all commands Each of the impacted commands will now use the 'json' template, which they all support as of Mercurial 3.7.3 (the first version tested in the regression tests). Note: I tried to add a test with null bytes, but both hglib and using hg directly through subprocess rejected adding a commit message with a null byte.
author Mathias De Mare <mathias.de_mare@nokia.com>
date Mon, 13 Mar 2023 15:32:20 +0100
parents 8ac8e29c7a1f
children
line wrap: on
line source

# note: you can use pyenv to install the necessary python versions missing on your system
# --> pyenv install 2.7 3.6 3.7 3.8 3.9 3.10 3.11
# --> pyenv global 2.7 3.6 3.7 3.8 3.9 3.10 3.11
[tox]
# test_merge_prompt_cb hangs for python3 before hg53
# python 2.7 is listed here to easily still test pre-hg53
envlist = py{27}-hg{37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52},
          py{36,37,38,39,310}-hg{53,54,55,56,57,58,59},
          py{36,37,38,39,310,311}-hg{60,61,62,63}

[testenv]
deps=
    hg37: Mercurial==3.7.3
    hg38: Mercurial==3.8.3
    hg39: Mercurial==3.8.3
    hg40: Mercurial==4.0.2
    hg41: Mercurial==4.1.3
    hg42: Mercurial==4.2.2
    hg43: Mercurial==4.3.1
    hg44: Mercurial==4.4.2
    hg45: Mercurial==4.5.3
    hg46: Mercurial==4.6.2
    hg47: Mercurial==4.7.2
    hg48: Mercurial==4.8.2
    hg49: Mercurial==4.9.1
    hg50: Mercurial==5.0.2
    hg51: Mercurial==5.1.2
    hg52: Mercurial==5.2.1
    hg53: Mercurial==5.3.2
    hg54: Mercurial==5.4.2
    hg55: Mercurial==5.5.2
    hg56: Mercurial==5.6.1
    hg57: Mercurial==5.7.1
    hg58: Mercurial==5.8
    hg59: Mercurial==5.9.3
    hg60: Mercurial==6.0.3
    hg61: Mercurial==6.1.4
    hg62: Mercurial==6.2.3
    hg63: Mercurial==6.3.3

setenv =
    HGPYTHON3 = 1

commands={envpython} -m unittest discover