tests/hghave: easier way to skip tests
Eduard-Cristian Stefan
alexandrul.ct at gmail.com
Sat Jun 9 15:04:02 UTC 2012
Would it be ok to test some environment variables in order to skip tests [1]?
Instead of:
def has_gettext():
+ if os.name == 'nt':
+ return False # msgfmt.exe crashes on Windows
return matchoutput('msgfmt --version', 'GNU gettext-tools')
simply check some environment variable like HG_TESTS_SKIP_GETTEXT.
Is there a better way than this?
[1] http://mercurial.selenic.com/wiki/HackableMercurial
More information about the Mercurial-devel
mailing list