comparison tests/test-blackbox.t @ 48967:42d2b31cee0b

tests: remove from __future__ from inline Python in tests This is no longer required since we require Python 3 and the linter no longer requires these statements. Differential Revision: https://phab.mercurial-scm.org/D12255
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Feb 2022 15:28:44 -0700
parents abbecb5cd6f3
children adecb1ab4a0d
comparison
equal deleted inserted replaced
48966:6000f5b25c9b 48967:42d2b31cee0b
401 #if chg 401 #if chg
402 402
403 when using chg, blackbox.log should get rotated correctly 403 when using chg, blackbox.log should get rotated correctly
404 404
405 $ cat > $TESTTMP/noop.py << EOF 405 $ cat > $TESTTMP/noop.py << EOF
406 > from __future__ import absolute_import
407 > import time 406 > import time
408 > from mercurial import registrar, scmutil 407 > from mercurial import registrar, scmutil
409 > cmdtable = {} 408 > cmdtable = {}
410 > command = registrar.command(cmdtable) 409 > command = registrar.command(cmdtable)
411 > @command(b'noop') 410 > @command(b'noop')
461 #endif 460 #endif
462 461
463 blackbox should work if repo.ui.log is not called (issue5518) 462 blackbox should work if repo.ui.log is not called (issue5518)
464 463
465 $ cat > $TESTTMP/raise.py << EOF 464 $ cat > $TESTTMP/raise.py << EOF
466 > from __future__ import absolute_import
467 > from mercurial import registrar, scmutil 465 > from mercurial import registrar, scmutil
468 > cmdtable = {} 466 > cmdtable = {}
469 > command = registrar.command(cmdtable) 467 > command = registrar.command(cmdtable)
470 > @command(b'raise') 468 > @command(b'raise')
471 > def raisecmd(*args): 469 > def raisecmd(*args):