Mercurial > hg
comparison tests/test-extension.t @ 36269:4088e568a411
extensions: reject any unicode strings in tables before loading
This allows us to test hg on Python 3 without disabling third-party
extensions which could pollute cmdtable for example.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Feb 2018 17:24:29 +0900 |
parents | eb878d863195 |
children | 2218f5bfafca |
comparison
equal
deleted
inserted
replaced
36268:be5a6fe3643a | 36269:4088e568a411 |
---|---|
1705 $ cat > $TESTTMP/opt-unicode-default/.hg/hgrc << EOF | 1705 $ cat > $TESTTMP/opt-unicode-default/.hg/hgrc << EOF |
1706 > [extensions] | 1706 > [extensions] |
1707 > test_unicode_default_value = $TESTTMP/test_unicode_default_value.py | 1707 > test_unicode_default_value = $TESTTMP/test_unicode_default_value.py |
1708 > EOF | 1708 > EOF |
1709 $ hg -R $TESTTMP/opt-unicode-default dummy | 1709 $ hg -R $TESTTMP/opt-unicode-default dummy |
1710 *** failed to import extension test_unicode_default_value from $TESTTMP/test_unicode_default_value.py: option 'dummy.opt' has a unicode default value | 1710 *** failed to import extension test_unicode_default_value from $TESTTMP/test_unicode_default_value.py: unicode u'value' found in cmdtable.dummy |
1711 *** (change the dummy.opt default value to a non-unicode string) | 1711 *** (use b'' to make it byte string) |
1712 hg: unknown command 'dummy' | 1712 hg: unknown command 'dummy' |
1713 (did you mean summary?) | 1713 (did you mean summary?) |
1714 [255] | 1714 [255] |