tests/test-contrib-emacs.t
author Manuel Jacob <me@manueljacob.de>
Thu, 16 Jul 2020 23:49:04 +0200
changeset 45146 a0791bfd9cfa
parent 41788 19979b8b87e2
child 45449 814c7430f828
permissions -rw-r--r--
util: enhance `nullcontextmanager` to be able to return __enter__ result This makes its functionality and signature equivalent to Python 3.7’s contextlib.nullcontext().

#require emacs
  $ emacs -q -no-site-file -batch -l $TESTDIR/../contrib/hg-test-mode.el \
  >  -f ert-run-tests-batch-and-exit
  Running 1 tests (*) (glob)
     passed  1/1  hg-test-mode--compilation-mode-support
  
  Ran 1 tests, 1 results as expected (*) (glob)