py3: add a test that proves %include and missing-extension code works
authorAugie Fackler <raf@durin42.com>
Fri, 03 Mar 2017 13:52:08 -0500
changeset 31304 dab92f3dbd98
parent 31303 90f439823b99
child 31305 dc9842a7017c
py3: add a test that proves %include and missing-extension code works
tests/test-check-py3-commands.t
--- a/tests/test-check-py3-commands.t	Fri Mar 03 14:08:02 2017 -0500
+++ b/tests/test-check-py3-commands.t	Fri Mar 03 13:52:08 2017 -0500
@@ -12,3 +12,14 @@
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   debuginstall
   TypeError: Can't convert 'bytes' object to str implicitly
+
+  $ cat > included-hgrc <<EOF
+  > [extensions]
+  > babar = imaginary_elephant
+  > EOF
+  $ cat >> $HGRCPATH <<EOF
+  > %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.