Skip to content
Snippets Groups Projects
Commit 9b3470dd authored by Augie Fackler's avatar Augie Fackler
Browse files

tests: add lots of globs and conditional output lines

The test now passes on Python 3. I'm going to do one follow-up where
I'll adjust some grep calls to improve our checking of things on
Python 3.

Differential Revision: https://phab.mercurial-scm.org/D5004
parent a7cdd81f
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
$ hg -q help help 2>&1 |grep extension
*** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow
*** failed to import extension badext2: No module named badext2
*** failed to import extension badext2: No module named *badext2* (glob)
show traceback
......@@ -55,5 +55,5 @@
*** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow
Traceback (most recent call last):
Exception: bit bucket overflow
*** failed to import extension badext2: No module named badext2
*** failed to import extension badext2: No module named *badext2* (glob)
Traceback (most recent call last):
......@@ -59,5 +59,7 @@
Traceback (most recent call last):
ImportError: No module named badext2
ImportError: No module named badext2 (no-py3k !)
Traceback (most recent call last): (py3k !)
Traceback (most recent call last): (py3k !)
names of extensions failed to load can be accessed via extensions.notloaded()
......@@ -95,5 +97,5 @@
debug.extensions: - invoking registered callbacks: 'baddocext'
debug.extensions: > callbacks completed in * (glob)
debug.extensions: - loading extension: 'badext2'
debug.extensions: - could not import hgext.badext2 (No module named badext2): trying hgext3rd.badext2
debug.extensions: - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob)
Traceback (most recent call last):
......@@ -99,4 +101,4 @@
Traceback (most recent call last):
ImportError: No module named *badext2 (glob)
debug.extensions: - could not import hgext3rd.badext2 (No module named badext2): trying badext2
ImportError: No module named badext2 (no-py3k !)
debug.extensions: - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob)
Traceback (most recent call last):
......@@ -102,4 +104,5 @@
Traceback (most recent call last):
ImportError: No module named *badext2 (glob)
*** failed to import extension badext2: No module named badext2
ImportError: No module named badext2 (no-py3k !)
Traceback (most recent call last): (py3k !)
*** failed to import extension badext2: No module named *badext2* (glob)
Traceback (most recent call last):
......@@ -105,5 +108,7 @@
Traceback (most recent call last):
ImportError: No module named badext2
Traceback (most recent call last): (py3k !)
Traceback (most recent call last): (py3k !)
ImportError: No module named badext2 (no-py3k !)
debug.extensions: > loaded 2 extensions, total time * (glob)
debug.extensions: - loading configtable attributes
debug.extensions: - executing uisetup hooks
......@@ -131,7 +136,7 @@
$ hg help --keyword baddocext
*** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow
*** failed to import extension badext2: No module named badext2
*** failed to import extension badext2: No module named *badext2* (glob)
Topics:
extensions Using Additional Features
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment