Mercurial > hg
comparison tests/test-bad-extension.t @ 43191:5ed1abd0ea26
py3: fix test-bad-extension expectations for py35
ModuleNotFoundError was introduced in 3.6, so the tests need to expect to see
ImportError with 3.5.
Differential Revision: https://phab.mercurial-scm.org/D7063
author | Ian Moody <moz-ian@perix.co.uk> |
---|---|
date | Fri, 04 Oct 2019 19:36:21 +0100 |
parents | 6f2510b581a0 |
children | 8cab8db59b6c |
comparison
equal
deleted
inserted
replaced
43190:c19b327017b9 | 43191:5ed1abd0ea26 |
---|---|
60 Traceback (most recent call last): | 60 Traceback (most recent call last): |
61 Exception: bit bucket overflow | 61 Exception: bit bucket overflow |
62 *** failed to import extension badext2: No module named *badext2* (glob) | 62 *** failed to import extension badext2: No module named *badext2* (glob) |
63 Traceback (most recent call last): | 63 Traceback (most recent call last): |
64 ImportError: No module named badext2 (no-py3 !) | 64 ImportError: No module named badext2 (no-py3 !) |
65 ModuleNotFoundError: No module named 'hgext.badext2' (py3 !) | 65 ImportError: No module named 'hgext.badext2' (py3 no-py36 !) |
66 ModuleNotFoundError: No module named 'hgext.badext2' (py36 !) | |
66 Traceback (most recent call last): (py3 !) | 67 Traceback (most recent call last): (py3 !) |
67 ModuleNotFoundError: No module named 'hgext3rd.badext2' (py3 !) | 68 ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !) |
69 ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !) | |
68 Traceback (most recent call last): (py3 !) | 70 Traceback (most recent call last): (py3 !) |
69 ModuleNotFoundError: No module named 'badext2' (py3 !) | 71 ImportError: No module named 'badext2' (py3 no-py36 !) |
72 ModuleNotFoundError: No module named 'badext2' (py36 !) | |
70 | 73 |
71 names of extensions failed to load can be accessed via extensions.notloaded() | 74 names of extensions failed to load can be accessed via extensions.notloaded() |
72 | 75 |
73 $ cat <<EOF > showbadexts.py | 76 $ cat <<EOF > showbadexts.py |
74 > from mercurial import commands, extensions, registrar | 77 > from mercurial import commands, extensions, registrar |
106 YYYY/MM/DD HH:MM:SS (PID)> > callbacks completed in * (glob) | 109 YYYY/MM/DD HH:MM:SS (PID)> > callbacks completed in * (glob) |
107 YYYY/MM/DD HH:MM:SS (PID)> - loading extension: badext2 | 110 YYYY/MM/DD HH:MM:SS (PID)> - loading extension: badext2 |
108 YYYY/MM/DD HH:MM:SS (PID)> - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob) | 111 YYYY/MM/DD HH:MM:SS (PID)> - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob) |
109 Traceback (most recent call last): | 112 Traceback (most recent call last): |
110 ImportError: No module named badext2 (no-py3 !) | 113 ImportError: No module named badext2 (no-py3 !) |
111 ModuleNotFoundError: No module named 'hgext.badext2' (py3 !) | 114 ImportError: No module named 'hgext.badext2' (py3 no-py36 !) |
115 ModuleNotFoundError: No module named 'hgext.badext2' (py36 !) | |
112 YYYY/MM/DD HH:MM:SS (PID)> - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob) | 116 YYYY/MM/DD HH:MM:SS (PID)> - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob) |
113 Traceback (most recent call last): | 117 Traceback (most recent call last): |
114 ImportError: No module named badext2 (no-py3 !) | 118 ImportError: No module named badext2 (no-py3 !) |
115 ModuleNotFoundError: No module named 'hgext.badext2' (py3 !) | 119 ImportError: No module named 'hgext.badext2' (py3 no-py36 !) |
120 ModuleNotFoundError: No module named 'hgext.badext2' (py36 !) | |
116 Traceback (most recent call last): (py3 !) | 121 Traceback (most recent call last): (py3 !) |
117 ModuleNotFoundError: No module named 'hgext3rd.badext2' (py3 !) | 122 ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !) |
123 ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !) | |
118 *** failed to import extension badext2: No module named *badext2* (glob) | 124 *** failed to import extension badext2: No module named *badext2* (glob) |
119 Traceback (most recent call last): | 125 Traceback (most recent call last): |
120 ModuleNotFoundError: No module named 'hgext.badext2' (py3 !) | 126 ImportError: No module named 'hgext.badext2' (py3 no-py36 !) |
127 ModuleNotFoundError: No module named 'hgext.badext2' (py36 !) | |
121 Traceback (most recent call last): (py3 !) | 128 Traceback (most recent call last): (py3 !) |
122 ModuleNotFoundError: No module named 'hgext3rd.badext2' (py3 !) | 129 ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !) |
130 ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !) | |
123 Traceback (most recent call last): (py3 !) | 131 Traceback (most recent call last): (py3 !) |
124 ModuleNotFoundError: No module named 'badext2' (py3 !) | 132 ModuleNotFoundError: No module named 'badext2' (py36 !) |
133 ImportError: No module named 'badext2' (py3 no-py36 !) | |
125 ImportError: No module named badext2 (no-py3 !) | 134 ImportError: No module named badext2 (no-py3 !) |
126 YYYY/MM/DD HH:MM:SS (PID)> > loaded 2 extensions, total time * (glob) | 135 YYYY/MM/DD HH:MM:SS (PID)> > loaded 2 extensions, total time * (glob) |
127 YYYY/MM/DD HH:MM:SS (PID)> - loading configtable attributes | 136 YYYY/MM/DD HH:MM:SS (PID)> - loading configtable attributes |
128 YYYY/MM/DD HH:MM:SS (PID)> - executing uisetup hooks | 137 YYYY/MM/DD HH:MM:SS (PID)> - executing uisetup hooks |
129 YYYY/MM/DD HH:MM:SS (PID)> - running uisetup for gpg | 138 YYYY/MM/DD HH:MM:SS (PID)> - running uisetup for gpg |