[PATCH 3 of 3 v2] tests: mark test-check-pyflakes.t as requiring hg1.0+

timeless timeless at gmail.com
Wed May 11 10:04:19 EDT 2016


On Wed, May 11, 2016 at 9:32 AM, Yuya Nishihara <yuya at tcha.org> wrote:
> BTW, do we plan to add version requirements to all tests?

I think I'm going to as I go. I have a series [1] which includes --rev
argument for run-tests.py which lets you build a different version of
hg for testing.

The specific reason* initially for these checks is just to let me run
things and say "if hg isn't working enough, I should skip this check",
and "hg" means "py3 hg".

Eventually that would mean that anything that uses hg in its tests
would have a require hgXX, and I could have a testsuite that passes
py3 hg w/o having a working hg. -- Admittedly, not the most useful
thing in the world, but the report would be intuitive since the skip
report says why a test is skipped, and it's cleaner than getting a
whole bunch of useless diffs with python crashing because of syntax
errors.

* Actually, I'm not sure if I was working on this while doing py3
work, pypy work, or runtests-rev work

[1] http://patchwork.serpentine.com/patch/14655/


More information about the Mercurial-devel mailing list