tests: move baduisetup() test out of "#if demandimport"
It no longer depends on demandimport.
Differential Revision: https://phab.mercurial-scm.org/D1163
--- a/tests/test-extension.t Tue Oct 17 09:46:31 2017 -0700
+++ b/tests/test-extension.t Tue Oct 17 10:25:32 2017 -0700
@@ -514,6 +514,8 @@
$ (PYTHONPATH=${PYTHONPATH}${PATHSEP}${TESTTMP}; hg --config extensions.checkrelativity=$TESTTMP/checkrelativity.py checkrelativity)
+#endif
+
Make sure a broken uisetup doesn't globally break hg:
$ cat > $TESTTMP/baduisetup.py <<EOF
> def uisetup(ui):
@@ -545,8 +547,6 @@
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-#endif
-
$ cd ..
hide outer repo