Mercurial > hg
comparison tests/test-obsolete.t @ 48876: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 | f8f2ecdde4b5 |
children | 2cf264e9aa75 |
comparison
equal
deleted
inserted
replaced
48875:6000f5b25c9b | 48876:42d2b31cee0b |
---|---|
1463 #endif | 1463 #endif |
1464 | 1464 |
1465 Test heads computation on pending index changes with obsolescence markers | 1465 Test heads computation on pending index changes with obsolescence markers |
1466 $ cd .. | 1466 $ cd .. |
1467 $ cat >$TESTTMP/test_extension.py << EOF | 1467 $ cat >$TESTTMP/test_extension.py << EOF |
1468 > from __future__ import absolute_import | |
1469 > from mercurial.i18n import _ | 1468 > from mercurial.i18n import _ |
1470 > from mercurial import cmdutil, pycompat, registrar | 1469 > from mercurial import cmdutil, pycompat, registrar |
1471 > from mercurial.utils import stringutil | 1470 > from mercurial.utils import stringutil |
1472 > | 1471 > |
1473 > cmdtable = {} | 1472 > cmdtable = {} |
1497 Test cache consistency for the visible filter | 1496 Test cache consistency for the visible filter |
1498 1) We want to make sure that the cached filtered revs are invalidated when | 1497 1) We want to make sure that the cached filtered revs are invalidated when |
1499 bookmarks change | 1498 bookmarks change |
1500 $ cd .. | 1499 $ cd .. |
1501 $ cat >$TESTTMP/test_extension.py << EOF | 1500 $ cat >$TESTTMP/test_extension.py << EOF |
1502 > from __future__ import absolute_import, print_function | |
1503 > import weakref | 1501 > import weakref |
1504 > from mercurial import ( | 1502 > from mercurial import ( |
1505 > bookmarks, | 1503 > bookmarks, |
1506 > cmdutil, | 1504 > cmdutil, |
1507 > extensions, | 1505 > extensions, |