Mercurial > evolve
view tests/hghaveaddon.py @ 5710:f65b2a978a1e stable
tests: make sure test-prev-next.t hits lock warning timeout every time
The test case explicitly uses fake-editor.sh with sleep 5 to test that hg prev
and hg next both lock working directory properly. But recent upstream tweak in
run-tests.py sets this timeout to 15, which is too high for this test. Let's
set it back to its default value of 0.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 08 Dec 2020 11:58:34 +0800 |
parents | f2139537c2be |
children | e41b99cec0c2 |
line wrap: on
line source
import hghave @hghave.check("docgraph-ext", "Extension to generate graph from repository") def docgraph(): try: import hgext.docgraph hgext.docgraph.cmdtable # trigger import except ImportError: try: import hgext3rd.docgraph hgext3rd.docgraph.cmdtable # trigger import except ImportError: return False return True @hghave.check("flake8", "Flake8 python linter") def has_flake8(): try: import flake8 flake8.__version__ except ImportError: return False else: return True @hghave.check("check-manifest", "check-manifest MANIFEST.in checking tool") def has_check_manifest(): return hghave.matchoutput('check-manifest --version 2>&1', br'check-manifest version')