##// END OF EJS Templates
py3: make test-ui-color use print_function
Pulkit Goyal -
r28682:2e5be704 default
parent child Browse files
Show More
@@ -1,295 +1,293
1 1 #require test-repo
2 2
3 3 $ cd "$TESTDIR"/..
4 4
5 5 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
6 6 contrib/import-checker.py not using absolute_import
7 7 contrib/import-checker.py requires print_function
8 8 doc/check-seclevel.py not using absolute_import
9 9 doc/gendoc.py not using absolute_import
10 10 doc/hgmanpage.py not using absolute_import
11 11 hgext/color.py not using absolute_import
12 12 hgext/eol.py not using absolute_import
13 13 hgext/extdiff.py not using absolute_import
14 14 hgext/factotum.py not using absolute_import
15 15 hgext/fetch.py not using absolute_import
16 16 hgext/fsmonitor/pywatchman/__init__.py not using absolute_import
17 17 hgext/fsmonitor/pywatchman/__init__.py requires print_function
18 18 hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
19 19 hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
20 20 hgext/gpg.py not using absolute_import
21 21 hgext/graphlog.py not using absolute_import
22 22 hgext/hgcia.py not using absolute_import
23 23 hgext/hgk.py not using absolute_import
24 24 hgext/highlight/__init__.py not using absolute_import
25 25 hgext/highlight/highlight.py not using absolute_import
26 26 hgext/histedit.py not using absolute_import
27 27 hgext/largefiles/__init__.py not using absolute_import
28 28 hgext/largefiles/basestore.py not using absolute_import
29 29 hgext/largefiles/lfcommands.py not using absolute_import
30 30 hgext/largefiles/lfutil.py not using absolute_import
31 31 hgext/largefiles/localstore.py not using absolute_import
32 32 hgext/largefiles/overrides.py not using absolute_import
33 33 hgext/largefiles/proto.py not using absolute_import
34 34 hgext/largefiles/remotestore.py not using absolute_import
35 35 hgext/largefiles/reposetup.py not using absolute_import
36 36 hgext/largefiles/uisetup.py not using absolute_import
37 37 hgext/largefiles/wirestore.py not using absolute_import
38 38 hgext/mq.py not using absolute_import
39 39 hgext/rebase.py not using absolute_import
40 40 hgext/share.py not using absolute_import
41 41 hgext/win32text.py not using absolute_import
42 42 i18n/check-translation.py not using absolute_import
43 43 i18n/polib.py not using absolute_import
44 44 setup.py not using absolute_import
45 45 tests/filterpyflakes.py requires print_function
46 46 tests/generate-working-copy-states.py requires print_function
47 47 tests/get-with-headers.py requires print_function
48 48 tests/heredoctest.py requires print_function
49 49 tests/hypothesishelpers.py not using absolute_import
50 50 tests/hypothesishelpers.py requires print_function
51 51 tests/killdaemons.py not using absolute_import
52 52 tests/md5sum.py not using absolute_import
53 53 tests/mockblackbox.py not using absolute_import
54 54 tests/printenv.py not using absolute_import
55 55 tests/readlink.py not using absolute_import
56 56 tests/readlink.py requires print_function
57 57 tests/revlog-formatv0.py not using absolute_import
58 58 tests/run-tests.py not using absolute_import
59 59 tests/seq.py not using absolute_import
60 60 tests/seq.py requires print_function
61 61 tests/silenttestrunner.py not using absolute_import
62 62 tests/silenttestrunner.py requires print_function
63 63 tests/sitecustomize.py not using absolute_import
64 64 tests/svn-safe-append.py not using absolute_import
65 65 tests/svnxml.py not using absolute_import
66 66 tests/test-ancestor.py requires print_function
67 67 tests/test-atomictempfile.py not using absolute_import
68 68 tests/test-batching.py not using absolute_import
69 69 tests/test-batching.py requires print_function
70 70 tests/test-bdiff.py not using absolute_import
71 71 tests/test-bdiff.py requires print_function
72 72 tests/test-context.py not using absolute_import
73 73 tests/test-context.py requires print_function
74 74 tests/test-demandimport.py not using absolute_import
75 75 tests/test-demandimport.py requires print_function
76 76 tests/test-doctest.py not using absolute_import
77 77 tests/test-duplicateoptions.py not using absolute_import
78 78 tests/test-duplicateoptions.py requires print_function
79 79 tests/test-filecache.py not using absolute_import
80 80 tests/test-filecache.py requires print_function
81 81 tests/test-filelog.py not using absolute_import
82 82 tests/test-filelog.py requires print_function
83 83 tests/test-hg-parseurl.py not using absolute_import
84 84 tests/test-hg-parseurl.py requires print_function
85 85 tests/test-hgweb-auth.py not using absolute_import
86 86 tests/test-hgweb-auth.py requires print_function
87 87 tests/test-hgwebdir-paths.py not using absolute_import
88 88 tests/test-hybridencode.py not using absolute_import
89 89 tests/test-hybridencode.py requires print_function
90 90 tests/test-lrucachedict.py not using absolute_import
91 91 tests/test-lrucachedict.py requires print_function
92 92 tests/test-manifest.py not using absolute_import
93 93 tests/test-minirst.py not using absolute_import
94 94 tests/test-minirst.py requires print_function
95 95 tests/test-parseindex2.py not using absolute_import
96 96 tests/test-parseindex2.py requires print_function
97 97 tests/test-pathencode.py not using absolute_import
98 98 tests/test-pathencode.py requires print_function
99 99 tests/test-propertycache.py not using absolute_import
100 100 tests/test-propertycache.py requires print_function
101 101 tests/test-revlog-ancestry.py not using absolute_import
102 102 tests/test-revlog-ancestry.py requires print_function
103 103 tests/test-run-tests.py not using absolute_import
104 104 tests/test-simplemerge.py not using absolute_import
105 105 tests/test-status-inprocess.py not using absolute_import
106 106 tests/test-status-inprocess.py requires print_function
107 107 tests/test-symlink-os-yes-fs-no.py not using absolute_import
108 108 tests/test-trusted.py not using absolute_import
109 109 tests/test-trusted.py requires print_function
110 110 tests/test-ui-color.py not using absolute_import
111 tests/test-ui-color.py requires print_function
112 111 tests/test-url.py not using absolute_import
113 112
114 113 #if py3exe
115 114 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
116 115 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position *-*: malformed \N character escape (<unknown>, line *) (glob)
117 116 contrib/import-checker.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
118 117 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
119 118 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
120 119 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
121 120 hgext/blackbox.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
122 121 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line *) (glob)
123 122 hgext/censor.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
124 123 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
125 124 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
126 125 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
127 126 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
128 127 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
129 128 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
130 129 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
131 130 hgext/convert/convcmd.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
132 131 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
133 132 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
134 133 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
135 134 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
136 135 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
137 136 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
138 137 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
139 138 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
140 139 hgext/convert/p*.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
141 140 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
142 141 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line *) (glob)
143 142 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
144 143 hgext/extdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
145 144 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:*) (glob)
146 145 hgext/fetch.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
147 146 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
148 147 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
149 148 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
150 149 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
151 150 hgext/hgcia.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
152 151 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
153 152 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
154 153 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
155 154 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
156 155 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
157 156 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
158 157 hgext/largefiles/lfutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
159 158 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
160 159 hgext/largefiles/overrides.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
161 160 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
162 161 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
163 162 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
164 163 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
165 164 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
166 165 hgext/mq.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
167 166 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
168 167 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
169 168 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
170 169 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
171 170 hgext/rebase.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
172 171 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
173 172 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
174 173 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
175 174 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
176 175 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
177 176 hgext/strip.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
178 177 hgext/transplant.py: error importing: <SyntaxError> invalid syntax (bundle*.py, line *) (error at bundlerepo.py:*) (glob)
179 178 hgext/win*text.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
180 179 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
181 180 mercurial/bookmarks.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
182 181 mercurial/branchmap.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
183 182 mercurial/bundle*.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
184 183 mercurial/bundlerepo.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
185 184 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
186 185 mercurial/changegroup.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
187 186 mercurial/changelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
188 187 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
189 188 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
190 189 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
191 190 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
192 191 mercurial/context.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
193 192 mercurial/copies.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
194 193 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
195 194 mercurial/destutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
196 195 mercurial/dirstate.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
197 196 mercurial/discovery.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
198 197 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
199 198 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
200 199 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
201 200 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
202 201 mercurial/filemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
203 202 mercurial/fileset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
204 203 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
205 204 mercurial/graphmod.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
206 205 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
207 206 mercurial/hg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
208 207 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
209 208 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
210 209 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
211 210 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
212 211 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
213 212 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
214 213 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
215 214 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
216 215 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
217 216 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
218 217 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
219 218 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
220 219 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
221 220 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
222 221 mercurial/localrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
223 222 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
224 223 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
225 224 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
226 225 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
227 226 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
228 227 mercurial/merge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
229 228 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
230 229 mercurial/namespaces.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
231 230 mercurial/obsolete.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
232 231 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
233 232 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
234 233 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
235 234 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
236 235 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
237 236 mercurial/pushkey.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
238 237 mercurial/pvec.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
239 238 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
240 239 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
241 240 mercurial/repoview.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
242 241 mercurial/revlog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
243 242 mercurial/revset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
244 243 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line *) (glob)
245 244 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
246 245 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
247 246 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
248 247 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
249 248 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
250 249 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
251 250 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
252 251 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
253 252 mercurial/streamclone.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
254 253 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
255 254 mercurial/tagmerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
256 255 mercurial/tags.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
257 256 mercurial/templatefilters.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
258 257 mercurial/templatekw.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
259 258 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
260 259 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
261 260 mercurial/ui.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
262 261 mercurial/unionrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
263 262 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
264 263 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
265 264 mercurial/verify.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
266 265 mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
267 266 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
268 267 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
269 268 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
270 269 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
271 270 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
272 271 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
273 272 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
274 273 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
275 274 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
276 275 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
277 276 tests/test-bdiff.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
278 277 tests/test-context.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
279 278 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
280 279 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
281 280 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
282 281 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
283 282 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
284 283 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
285 284 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
286 285 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
287 286 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
288 287 tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
289 288 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
290 289 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
291 290 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
292 291 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
293 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
294 292
295 293 #endif
@@ -1,33 +1,34
1 from __future__ import print_function
1 2 import os
2 3 from hgext import color
3 4 from mercurial import dispatch, ui
4 5
5 6 # ensure errors aren't buffered
6 7 testui = color.colorui()
7 8 testui.pushbuffer()
8 9 testui.write(('buffered\n'))
9 10 testui.warn(('warning\n'))
10 11 testui.write_err('error\n')
11 print repr(testui.popbuffer())
12 print(repr(testui.popbuffer()))
12 13
13 14 # test dispatch.dispatch with the same ui object
14 15 hgrc = open(os.environ["HGRCPATH"], 'w')
15 16 hgrc.write('[extensions]\n')
16 17 hgrc.write('color=\n')
17 18 hgrc.close()
18 19
19 20 ui_ = ui.ui()
20 21 ui_.setconfig('ui', 'formatted', 'True')
21 22
22 23 # we're not interested in the output, so write that to devnull
23 24 ui_.fout = open(os.devnull, 'w')
24 25
25 26 # call some arbitrary command just so we go through
26 27 # color's wrapped _runcommand twice.
27 28 def runcmd():
28 29 dispatch.dispatch(dispatch.request(['version', '-q'], ui_))
29 30
30 31 runcmd()
31 print "colored? " + str(issubclass(ui_.__class__, color.colorui))
32 print("colored? " + str(issubclass(ui_.__class__, color.colorui)))
32 33 runcmd()
33 print "colored? " + str(issubclass(ui_.__class__, color.colorui))
34 print("colored? " + str(issubclass(ui_.__class__, color.colorui)))
General Comments 0
You need to be logged in to leave comments. Login now