##// END OF EJS Templates
py3: add a test that proves %include and missing-extension code works
Augie Fackler -
r31304:dab92f3d default
parent child Browse files
Show More
@@ -1,14 +1,25 b''
1 1 #require py3exe
2 2
3 3 This test helps in keeping a track on which commands we can run on
4 4 Python 3 and see what kind of errors are coming up.
5 5 The full traceback is hidden to have a stable output.
6 6
7 7 $ for cmd in version debuginstall ; do
8 8 > echo $cmd
9 9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
10 10 > done
11 11 version
12 12 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 13 debuginstall
14 14 TypeError: Can't convert 'bytes' object to str implicitly
15
16 $ cat > included-hgrc <<EOF
17 > [extensions]
18 > babar = imaginary_elephant
19 > EOF
20 $ cat >> $HGRCPATH <<EOF
21 > %include $TESTTMP/included-hgrc
22 > EOF
23 $ $PYTHON3 `which hg` version | tail -1
24 *** failed to import extension babar from imaginary_elephant: *: 'imaginary_elephant' (glob)
25 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
General Comments 0
You need to be logged in to leave comments. Login now