Mercurial > hg-stable
comparison tests/test-i18n.t @ 36674:7bc33d677c0c
tests: fix various test-check-module-imports.t violations
Somehow these are only caught when running the test under Python 3.
Differential Revision: https://phab.mercurial-scm.org/D2580
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 03 Mar 2018 09:35:59 -0500 |
parents | a88166a4dce3 |
children | 5abc47d4ca6b |
comparison
equal
deleted
inserted
replaced
36673:e2b87e19c6ef | 36674:7bc33d677c0c |
---|---|
52 #if gettext | 52 #if gettext |
53 | 53 |
54 Check i18n cache isn't reused after encoding change: | 54 Check i18n cache isn't reused after encoding change: |
55 | 55 |
56 $ cat > $TESTTMP/encodingchange.py << EOF | 56 $ cat > $TESTTMP/encodingchange.py << EOF |
57 > from mercurial.i18n import _ | |
57 > from mercurial import encoding, registrar | 58 > from mercurial import encoding, registrar |
58 > from mercurial.i18n import _ | |
59 > cmdtable = {} | 59 > cmdtable = {} |
60 > command = registrar.command(cmdtable) | 60 > command = registrar.command(cmdtable) |
61 > @command(b'encodingchange', norepo=True) | 61 > @command(b'encodingchange', norepo=True) |
62 > def encodingchange(ui): | 62 > def encodingchange(ui): |
63 > for encode in (b'ascii', b'UTF-8', b'ascii', b'UTF-8'): | 63 > for encode in (b'ascii', b'UTF-8', b'ascii', b'UTF-8'): |