From patchwork Sat Mar 11 19:39:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2, of, 6, py3, v4] py3: add a test that proves %include and missing-extension code works From: Augie Fackler X-Patchwork-Id: 19104 Message-Id: <4e079d87982a89c78956.1489261154@augie-macbookair2.roam.corp.google.com> To: mercurial-devel@mercurial-scm.org Date: Sat, 11 Mar 2017 14:39:14 -0500 # HG changeset patch # User Augie Fackler # Date 1488567128 18000 # Fri Mar 03 13:52:08 2017 -0500 # Node ID 4e079d87982a89c789565b0ff83393d439fc10f6 # Parent f498eb177f8d15d967f53ccc2a37fad5a2b785a4 py3: add a test that proves %include and missing-extension code works diff --git a/tests/test-check-py3-commands.t b/tests/test-check-py3-commands.t --- a/tests/test-check-py3-commands.t +++ b/tests/test-check-py3-commands.t @@ -12,3 +12,14 @@ The full traceback is hidden to have a s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. debuginstall TypeError: Can't convert 'bytes' object to str implicitly + + $ cat > included-hgrc < [extensions] + > babar = imaginary_elephant + > EOF + $ cat >> $HGRCPATH < %include $TESTTMP/included-hgrc + > EOF + $ $PYTHON3 `which hg` version | tail -1 + *** failed to import extension babar from imaginary_elephant: *: 'imaginary_elephant' (glob) + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.