From c2c64d0623df3121f69185220ffc57af10c423d4 Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Mon, 24 Dec 2018 00:10:30 -0800 Subject: Never mind, early return is what we want Also, add default variable so old code (e.g. tests) is okay, and update keycode for the Chinese character even though it doesn't really matter to the test --- tests/unit/keyinput/test_keyutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/keyinput') diff --git a/tests/unit/keyinput/test_keyutils.py b/tests/unit/keyinput/test_keyutils.py index af80e00ea..1e5350989 100644 --- a/tests/unit/keyinput/test_keyutils.py +++ b/tests/unit/keyinput/test_keyutils.py @@ -167,7 +167,7 @@ def test_key_info_str(key, modifiers, expected): def test_extended_unicode(): assert str(keyutils.KeyInfo(0xd83c, Qt.NoModifier, "🏻")) == "🏻" - assert str(keyutils.KeyInfo(0xd83c, Qt.NoModifier, "𩷶")) == "𩷶" + assert str(keyutils.KeyInfo(0xd867, Qt.NoModifier, "𩷶")) == "𩷶" @pytest.mark.parametrize('keystr, expected', [ ('foo', "Could not parse 'foo': error"), -- cgit v1.2.3-54-g00ecf