##// END OF EJS Templates
tests: fix test-status-inprocess.py on Python 3...
Augie Fackler -
r37918:bbff7170 @28 default
parent child Browse files
Show More
@@ -1,470 +1,471 b''
1 1 test-abort-checkin.t
2 2 test-add.t
3 3 test-addremove-similar.t
4 4 test-addremove.t
5 5 test-amend-subrepo.t
6 6 test-amend.t
7 7 test-ancestor.py
8 8 test-annotate.py
9 9 test-annotate.t
10 10 test-archive-symlinks.t
11 11 test-atomictempfile.py
12 12 test-audit-path.t
13 13 test-audit-subrepo.t
14 14 test-automv.t
15 15 test-backout.t
16 16 test-backwards-remove.t
17 17 test-basic.t
18 18 test-bheads.t
19 19 test-bisect.t
20 20 test-bisect2.t
21 21 test-bisect3.t
22 22 test-blackbox.t
23 23 test-bookmarks-current.t
24 24 test-bookmarks-merge.t
25 25 test-bookmarks-rebase.t
26 26 test-bookmarks-strip.t
27 27 test-bookmarks.t
28 28 test-branch-change.t
29 29 test-branch-option.t
30 30 test-branch-tag-confict.t
31 31 test-branches.t
32 32 test-bundle-phases.t
33 33 test-bundle-type.t
34 34 test-bundle-vs-outgoing.t
35 35 test-bundle2-multiple-changegroups.t
36 36 test-cappedreader.py
37 37 test-casecollision.t
38 38 test-cat.t
39 39 test-cbor.py
40 40 test-censor.t
41 41 test-changelog-exec.t
42 42 test-check-commit.t
43 43 test-check-execute.t
44 44 test-check-interfaces.py
45 45 test-check-module-imports.t
46 46 test-check-pyflakes.t
47 47 test-check-pylint.t
48 48 test-check-shbang.t
49 49 test-children.t
50 50 test-clone-cgi.t
51 51 test-clone-pull-corruption.t
52 52 test-clone-r.t
53 53 test-clone-update-order.t
54 54 test-command-template.t
55 55 test-commit-amend.t
56 56 test-commit-interactive.t
57 57 test-commit-multiple.t
58 58 test-commit-unresolved.t
59 59 test-commit.t
60 60 test-committer.t
61 61 test-completion.t
62 62 test-config-env.py
63 63 test-config.t
64 64 test-conflict.t
65 65 test-confused-revert.t
66 66 test-contrib-check-code.t
67 67 test-contrib-check-commit.t
68 68 test-convert-authormap.t
69 69 test-convert-clonebranches.t
70 70 test-convert-datesort.t
71 71 test-convert-filemap.t
72 72 test-convert-hg-sink.t
73 73 test-convert-hg-source.t
74 74 test-convert-hg-startrev.t
75 75 test-convert-splicemap.t
76 76 test-convert-tagsbranch-topology.t
77 77 test-copy-move-merge.t
78 78 test-copy.t
79 79 test-copytrace-heuristics.t
80 80 test-debugbuilddag.t
81 81 test-debugbundle.t
82 82 test-debugextensions.t
83 83 test-debugindexdot.t
84 84 test-debugrename.t
85 85 test-default-push.t
86 86 test-diff-binary-file.t
87 87 test-diff-change.t
88 88 test-diff-copy-depth.t
89 89 test-diff-hashes.t
90 90 test-diff-ignore-whitespace.t
91 91 test-diff-indent-heuristic.t
92 92 test-diff-issue2761.t
93 93 test-diff-newlines.t
94 94 test-diff-reverse.t
95 95 test-diff-subdir.t
96 96 test-diff-unified.t
97 97 test-diff-upgrade.t
98 98 test-diffdir.t
99 99 test-diffstat.t
100 100 test-directaccess.t
101 101 test-dirstate-backup.t
102 102 test-dirstate-nonnormalset.t
103 103 test-dirstate.t
104 104 test-doctest.py
105 105 test-double-merge.t
106 106 test-drawdag.t
107 107 test-duplicateoptions.py
108 108 test-editor-filename.t
109 109 test-empty-dir.t
110 110 test-empty-file.t
111 111 test-empty-group.t
112 112 test-empty.t
113 113 test-encode.t
114 114 test-encoding-func.py
115 115 test-encoding.t
116 116 test-eol-add.t
117 117 test-eol-clone.t
118 118 test-eol-hook.t
119 119 test-eol-tag.t
120 120 test-eol-update.t
121 121 test-excessive-merge.t
122 122 test-exchange-obsmarkers-case-A1.t
123 123 test-exchange-obsmarkers-case-A2.t
124 124 test-exchange-obsmarkers-case-A3.t
125 125 test-exchange-obsmarkers-case-A4.t
126 126 test-exchange-obsmarkers-case-A5.t
127 127 test-exchange-obsmarkers-case-A6.t
128 128 test-exchange-obsmarkers-case-A7.t
129 129 test-exchange-obsmarkers-case-B1.t
130 130 test-exchange-obsmarkers-case-B2.t
131 131 test-exchange-obsmarkers-case-B3.t
132 132 test-exchange-obsmarkers-case-B4.t
133 133 test-exchange-obsmarkers-case-B5.t
134 134 test-exchange-obsmarkers-case-B6.t
135 135 test-exchange-obsmarkers-case-B7.t
136 136 test-exchange-obsmarkers-case-C1.t
137 137 test-exchange-obsmarkers-case-C2.t
138 138 test-exchange-obsmarkers-case-C3.t
139 139 test-exchange-obsmarkers-case-C4.t
140 140 test-exchange-obsmarkers-case-D1.t
141 141 test-exchange-obsmarkers-case-D2.t
142 142 test-exchange-obsmarkers-case-D3.t
143 143 test-exchange-obsmarkers-case-D4.t
144 144 test-execute-bit.t
145 145 test-export.t
146 146 test-extdata.t
147 147 test-extdiff.t
148 148 test-extra-filelog-entry.t
149 149 test-filebranch.t
150 150 test-filecache.py
151 151 test-fileset-generated.t
152 152 test-fix-topology.t
153 153 test-flags.t
154 154 test-generaldelta.t
155 155 test-getbundle.t
156 156 test-git-export.t
157 157 test-glog-topological.t
158 158 test-gpg.t
159 159 test-graft.t
160 160 test-hg-parseurl.py
161 161 test-hghave.t
162 162 test-hgignore.t
163 163 test-hgk.t
164 164 test-hgweb-bundle.t
165 165 test-hgweb-descend-empties.t
166 166 test-hgweb-empty.t
167 167 test-hgweb-removed.t
168 168 test-hgwebdir-paths.py
169 169 test-hgwebdirsym.t
170 170 test-histedit-arguments.t
171 171 test-histedit-base.t
172 172 test-histedit-bookmark-motion.t
173 173 test-histedit-commute.t
174 174 test-histedit-drop.t
175 175 test-histedit-edit.t
176 176 test-histedit-fold-non-commute.t
177 177 test-histedit-fold.t
178 178 test-histedit-no-change.t
179 179 test-histedit-non-commute-abort.t
180 180 test-histedit-non-commute.t
181 181 test-histedit-obsolete.t
182 182 test-histedit-outgoing.t
183 183 test-histedit-templates.t
184 184 test-http-branchmap.t
185 185 test-http-bundle1.t
186 186 test-http-clone-r.t
187 187 test-http.t
188 188 test-hybridencode.py
189 189 test-identify.t
190 190 test-import-unknown.t
191 191 test-import.t
192 192 test-imports-checker.t
193 193 test-incoming-outgoing.t
194 194 test-inherit-mode.t
195 195 test-issue1089.t
196 196 test-issue1102.t
197 197 test-issue1175.t
198 198 test-issue1306.t
199 199 test-issue1438.t
200 200 test-issue1502.t
201 201 test-issue1802.t
202 202 test-issue1877.t
203 203 test-issue1993.t
204 204 test-issue2137.t
205 205 test-issue3084.t
206 206 test-issue4074.t
207 207 test-issue522.t
208 208 test-issue586.t
209 209 test-issue612.t
210 210 test-issue619.t
211 211 test-issue660.t
212 212 test-issue672.t
213 213 test-issue842.t
214 214 test-journal-exists.t
215 215 test-journal-share.t
216 216 test-journal.t
217 217 test-largefiles-cache.t
218 218 test-largefiles-misc.t
219 219 test-largefiles-small-disk.t
220 220 test-largefiles-update.t
221 221 test-largefiles.t
222 222 test-lfs-largefiles.t
223 223 test-linerange.py
224 224 test-locate.t
225 225 test-lock-badness.t
226 226 test-log-linerange.t
227 227 test-log.t
228 228 test-logexchange.t
229 229 test-lrucachedict.py
230 230 test-mactext.t
231 231 test-mailmap.t
232 232 test-manifest-merging.t
233 233 test-manifest.py
234 234 test-manifest.t
235 235 test-match.py
236 236 test-mdiff.py
237 237 test-merge-changedelete.t
238 238 test-merge-closedheads.t
239 239 test-merge-commit.t
240 240 test-merge-criss-cross.t
241 241 test-merge-default.t
242 242 test-merge-force.t
243 243 test-merge-halt.t
244 244 test-merge-internal-tools-pattern.t
245 245 test-merge-local.t
246 246 test-merge-remove.t
247 247 test-merge-revert.t
248 248 test-merge-revert2.t
249 249 test-merge-subrepos.t
250 250 test-merge-symlinks.t
251 251 test-merge-tools.t
252 252 test-merge-types.t
253 253 test-merge1.t
254 254 test-merge10.t
255 255 test-merge2.t
256 256 test-merge4.t
257 257 test-merge5.t
258 258 test-merge6.t
259 259 test-merge7.t
260 260 test-merge8.t
261 261 test-merge9.t
262 262 test-minifileset.py
263 263 test-minirst.py
264 264 test-mq-git.t
265 265 test-mq-header-date.t
266 266 test-mq-header-from.t
267 267 test-mq-merge.t
268 268 test-mq-pull-from-bundle.t
269 269 test-mq-qclone-http.t
270 270 test-mq-qdelete.t
271 271 test-mq-qdiff.t
272 272 test-mq-qfold.t
273 273 test-mq-qgoto.t
274 274 test-mq-qimport-fail-cleanup.t
275 275 test-mq-qnew.t
276 276 test-mq-qpush-exact.t
277 277 test-mq-qqueue.t
278 278 test-mq-qrefresh-interactive.t
279 279 test-mq-qrefresh-replace-log-message.t
280 280 test-mq-qrefresh.t
281 281 test-mq-qrename.t
282 282 test-mq-qsave.t
283 283 test-mq-safety.t
284 284 test-mq-subrepo.t
285 285 test-mq-symlinks.t
286 286 test-mv-cp-st-diff.t
287 287 test-narrow-archive.t
288 288 test-narrow-clone-no-ellipsis.t
289 289 test-narrow-clone-non-narrow-server.t
290 290 test-narrow-clone-nonlinear.t
291 291 test-narrow-clone.t
292 292 test-narrow-commit.t
293 293 test-narrow-copies.t
294 294 test-narrow-debugcommands.t
295 295 test-narrow-debugrebuilddirstate.t
296 296 test-narrow-exchange-merges.t
297 297 test-narrow-exchange.t
298 298 test-narrow-expanddirstate.t
299 299 test-narrow-merge.t
300 300 test-narrow-patch.t
301 301 test-narrow-patterns.t
302 302 test-narrow-pull.t
303 303 test-narrow-rebase.t
304 304 test-narrow-shallow-merges.t
305 305 test-narrow-shallow.t
306 306 test-narrow-strip.t
307 307 test-narrow-update.t
308 308 test-nested-repo.t
309 309 test-newbranch.t
310 310 test-obshistory.t
311 311 test-obsmarker-template.t
312 312 test-obsmarkers-effectflag.t
313 313 test-obsolete-bundle-strip.t
314 314 test-obsolete-changeset-exchange.t
315 315 test-obsolete-checkheads.t
316 316 test-obsolete-distributed.t
317 317 test-obsolete-tag-cache.t
318 318 test-parents.t
319 319 test-parseindex2.py
320 320 test-pathconflicts-merge.t
321 321 test-pathconflicts-update.t
322 322 test-pathencode.py
323 323 test-pending.t
324 324 test-permissions.t
325 325 test-phases.t
326 326 test-pull-branch.t
327 327 test-pull-http.t
328 328 test-pull-permission.t
329 329 test-pull-pull-corruption.t
330 330 test-pull-r.t
331 331 test-pull-update.t
332 332 test-purge.t
333 333 test-push-checkheads-partial-C1.t
334 334 test-push-checkheads-partial-C2.t
335 335 test-push-checkheads-partial-C3.t
336 336 test-push-checkheads-partial-C4.t
337 337 test-push-checkheads-pruned-B1.t
338 338 test-push-checkheads-pruned-B2.t
339 339 test-push-checkheads-pruned-B3.t
340 340 test-push-checkheads-pruned-B4.t
341 341 test-push-checkheads-pruned-B5.t
342 342 test-push-checkheads-pruned-B6.t
343 343 test-push-checkheads-pruned-B7.t
344 344 test-push-checkheads-pruned-B8.t
345 345 test-push-checkheads-superceed-A1.t
346 346 test-push-checkheads-superceed-A2.t
347 347 test-push-checkheads-superceed-A3.t
348 348 test-push-checkheads-superceed-A4.t
349 349 test-push-checkheads-superceed-A5.t
350 350 test-push-checkheads-superceed-A6.t
351 351 test-push-checkheads-superceed-A7.t
352 352 test-push-checkheads-superceed-A8.t
353 353 test-push-checkheads-unpushed-D1.t
354 354 test-push-checkheads-unpushed-D2.t
355 355 test-push-checkheads-unpushed-D3.t
356 356 test-push-checkheads-unpushed-D4.t
357 357 test-push-checkheads-unpushed-D5.t
358 358 test-push-checkheads-unpushed-D6.t
359 359 test-push-checkheads-unpushed-D7.t
360 360 test-push-http.t
361 361 test-push-warn.t
362 362 test-pushvars.t
363 363 test-rebase-abort.t
364 364 test-rebase-base-flag.t
365 365 test-rebase-bookmarks.t
366 366 test-rebase-brute-force.t
367 367 test-rebase-cache.t
368 368 test-rebase-check-restore.t
369 369 test-rebase-collapse.t
370 370 test-rebase-conflicts.t
371 371 test-rebase-dest.t
372 372 test-rebase-detach.t
373 373 test-rebase-emptycommit.t
374 374 test-rebase-inmemory.t
375 375 test-rebase-interruptions.t
376 376 test-rebase-issue-noparam-single-rev.t
377 377 test-rebase-legacy.t
378 378 test-rebase-mq-skip.t
379 379 test-rebase-mq.t
380 380 test-rebase-named-branches.t
381 381 test-rebase-newancestor.t
382 382 test-rebase-obsolete.t
383 383 test-rebase-parameters.t
384 384 test-rebase-partial.t
385 385 test-rebase-pull.t
386 386 test-rebase-rename.t
387 387 test-rebase-scenario-global.t
388 388 test-rebase-templates.t
389 389 test-rebase-transaction.t
390 390 test-record.t
391 391 test-relink.t
392 392 test-remove.t
393 393 test-rename-after-merge.t
394 394 test-rename-dir-merge.t
395 395 test-rename-merge1.t
396 396 test-rename.t
397 397 test-repair-strip.t
398 398 test-repo-compengines.t
399 399 test-resolve.t
400 400 test-revert-flags.t
401 401 test-revert-unknown.t
402 402 test-revlog-ancestry.py
403 403 test-revlog-group-emptyiter.t
404 404 test-revlog-mmapindex.t
405 405 test-revlog-packentry.t
406 406 test-revset-dirstate-parents.t
407 407 test-revset-legacy-lookup.t
408 408 test-revset-outgoing.t
409 409 test-rollback.t
410 410 test-run-tests.py
411 411 test-run-tests.t
412 412 test-schemes.t
413 413 test-serve.t
414 414 test-setdiscovery.t
415 415 test-share.t
416 416 test-shelve.t
417 417 test-show-stack.t
418 418 test-show-work.t
419 419 test-show.t
420 420 test-simple-update.t
421 421 test-simplemerge.py
422 422 test-single-head.t
423 423 test-sparse-clear.t
424 424 test-sparse-import.t
425 425 test-sparse-merges.t
426 426 test-sparse-profiles.t
427 427 test-sparse-requirement.t
428 428 test-sparse-verbose-json.t
429 429 test-ssh-clone-r.t
430 430 test-ssh-proto.t
431 431 test-sshserver.py
432 432 test-stack.t
433 test-status-inprocess.py
433 434 test-status-rev.t
434 435 test-status-terse.t
435 436 test-strip-cross.t
436 437 test-strip.t
437 438 test-subrepo-deep-nested-change.t
438 439 test-subrepo-missing.t
439 440 test-subrepo-recursion.t
440 441 test-subrepo-relative-path.t
441 442 test-subrepo.t
442 443 test-symlinks.t
443 444 test-tag.t
444 445 test-tags.t
445 446 test-template-engine.t
446 447 test-treemanifest.t
447 448 test-unamend.t
448 449 test-uncommit.t
449 450 test-unified-test.t
450 451 test-unrelated-pull.t
451 452 test-up-local-change.t
452 453 test-update-branches.t
453 454 test-update-dest.t
454 455 test-update-issue1456.t
455 456 test-update-names.t
456 457 test-update-reverse.t
457 458 test-upgrade-repo.t
458 459 test-url-download.t
459 460 test-url-rev.t
460 461 test-url.py
461 462 test-username-newline.t
462 463 test-verify.t
463 464 test-walkrepo.py
464 465 test-websub.t
465 466 test-win32text.t
466 467 test-wireproto-clientreactor.py
467 468 test-wireproto-framing.py
468 469 test-wireproto-serverreactor.py
469 470 test-wsgirequest.py
470 471 test-xdg.t
@@ -1,35 +1,47 b''
1 1 #!/usr/bin/env python
2 2 from __future__ import absolute_import, print_function
3 3
4 import sys
5
4 6 from mercurial import (
5 7 commands,
6 8 localrepo,
7 9 ui as uimod,
8 10 )
9 11
12 print_ = print
13 def print(*args, **kwargs):
14 """print() wrapper that flushes stdout buffers to avoid py3 buffer issues
15
16 We could also just write directly to sys.stdout.buffer the way the
17 ui object will, but this was easier for porting the test.
18 """
19 print_(*args, **kwargs)
20 sys.stdout.flush()
21
10 22 u = uimod.ui.load()
11 23
12 24 print('% creating repo')
13 25 repo = localrepo.localrepository(u, b'.', create=True)
14 26
15 27 f = open('test.py', 'w')
16 28 try:
17 29 f.write('foo\n')
18 30 finally:
19 31 f.close
20 32
21 33 print('% add and commit')
22 34 commands.add(u, repo, b'test.py')
23 35 commands.commit(u, repo, message=b'*')
24 36 commands.status(u, repo, clean=True)
25 37
26 38
27 39 print('% change')
28 40 f = open('test.py', 'w')
29 41 try:
30 42 f.write('bar\n')
31 43 finally:
32 44 f.close()
33 45
34 46 # this would return clean instead of changed before the fix
35 47 commands.status(u, repo, clean=True, modified=True)
General Comments 0
You need to be logged in to leave comments. Login now