Mercurial > hg
diff tests/test-bad-extension.t @ 40236:9b3470dd9870
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 12 Oct 2018 12:32:12 -0400 |
parents | 9cbc2579f5be |
children | 772c1145bcef |
line wrap: on
line diff
--- a/tests/test-bad-extension.t Sat Oct 13 04:00:47 2018 -0400 +++ b/tests/test-bad-extension.t Fri Oct 12 12:32:12 2018 -0400 @@ -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,9 +55,11 @@ *** 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): - 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,15 +97,18 @@ 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): - 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): - 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): - 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