diff options
author | alexanderlukanin13 <alexander.lukanin.13@gmail.com> | 2013-11-07 14:45:15 +0600 |
---|---|---|
committer | alexanderlukanin13 <alexander.lukanin.13@gmail.com> | 2013-11-07 14:45:15 +0600 |
commit | facf96b253205d58d46fe6ea780a81c2c7203d26 (patch) | |
tree | 7db7e4ff3d59970dcb35c4fdf735f3a13634abf7 /test_six.py | |
parent | c2312c1c26a9c68d4c7dad96eba5b39695adbd3f (diff) | |
download | six-facf96b253205d58d46fe6ea780a81c2c7203d26.tar.gz |
fixed six.u('\\\\') in Python 2
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 efeb33e..e233e97 100644 --- a/test_six.py +++ b/test_six.py @@ -385,9 +385,9 @@ if six.PY3: def test_u(): - s = six.u("hi") + s = six.u("hi \u0439 \\ \\\\ \n") assert isinstance(s, str) - assert s == "hi" + assert s == "hi \u0439 \\ \\\\ \n" else: @@ -399,9 +399,9 @@ else: def test_u(): - s = six.u("hi") + s = six.u("hi \u0439 \\ \\\\ \n") assert isinstance(s, unicode) - assert s == "hi" + assert s == "hi \xd0\xb9 \\ \\\\ \n".decode("utf8") def test_u_escapes(): |