comparison tests/hghave.py @ 41842:28842adf8ed5

hghave: skip emacs tests on 24.3 and earlier Turns out with-eval-after-load is new in 24.4. Differential Revision: https://phab.mercurial-scm.org/D6074
author Augie Fackler <augie@google.com>
date Mon, 04 Mar 2019 18:11:50 -0500
parents 2a6ca0d94b70
children 07e479ef7c96
comparison
equal deleted inserted replaced
41841:b1d07f4614a6 41842:28842adf8ed5
823 pass 823 pass
824 return False 824 return False
825 825
826 @check('emacs', 'GNU Emacs') 826 @check('emacs', 'GNU Emacs')
827 def has_emacs(): 827 def has_emacs():
828 return matchoutput('emacs --version', b'GNU Emacs') 828 # Our emacs lisp uses `with-eval-after-load` which is new in emacs
829 # 24.4, so we allow emacs 24.4, 24.5, and 25+ (24.5 was the last
830 # 24 release)
831 return matchoutput('emacs --version', b'GNU Emacs 2(4.4|4.5|5|6|7|8|9)')