diff options
author | alexanderlukanin13 <alexander.lukanin.13@gmail.com> | 2013-11-27 20:10:54 +0600 |
---|---|---|
committer | alexanderlukanin13 <alexander.lukanin.13@gmail.com> | 2013-11-27 20:10:54 +0600 |
commit | 23a3d2d504c1875d5eba8cc0abab3b127714c533 (patch) | |
tree | 82461cf48c281c3f9d61def7352298b8b53c6e13 /test_six.py | |
parent | facf96b253205d58d46fe6ea780a81c2c7203d26 (diff) | |
download | six-23a3d2d504c1875d5eba8cc0abab3b127714c533.tar.gz |
six.u 4-byte unicode escaping fixed ('\U00000439')
Diffstat (limited to 'test_six.py')
-rw-r--r-- | test_six.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test_six.py b/test_six.py index e233e97..94e33eb 100644 --- a/test_six.py +++ b/test_six.py @@ -385,9 +385,9 @@ if six.PY3: def test_u(): - s = six.u("hi \u0439 \\ \\\\ \n") + s = six.u("hi \u0439 \U00000439 \\ \\\\ \n") assert isinstance(s, str) - assert s == "hi \u0439 \\ \\\\ \n" + assert s == "hi \u0439 \U00000439 \\ \\\\ \n" else: @@ -399,9 +399,9 @@ else: def test_u(): - s = six.u("hi \u0439 \\ \\\\ \n") + s = six.u("hi \u0439 \U00000439 \\ \\\\ \n") assert isinstance(s, unicode) - assert s == "hi \xd0\xb9 \\ \\\\ \n".decode("utf8") + assert s == "hi \xd0\xb9 \xd0\xb9 \\ \\\\ \n".decode("utf8") def test_u_escapes(): |