Commit 876a7d33 authored by Stefan Behnel's avatar Stefan Behnel

use different codec alias names in test code than in optimiser code to check...

use different codec alias names in test code than in optimiser code to check that the alias name resolution works
parent 4f4aac85
...@@ -162,7 +162,7 @@ def bytes_decode_utf16(bytes s): ...@@ -162,7 +162,7 @@ def bytes_decode_utf16(bytes s):
>>> print(bytes_decode_utf16(s)) >>> print(bytes_decode_utf16(s))
abc abc
""" """
return s.decode('UTF-16') return s.decode('utf16')
@cython.test_assert_path_exists( @cython.test_assert_path_exists(
...@@ -176,7 +176,7 @@ def bytes_decode_utf16_le(bytes s): ...@@ -176,7 +176,7 @@ def bytes_decode_utf16_le(bytes s):
>>> print(bytes_decode_utf16_le(s)) >>> print(bytes_decode_utf16_le(s))
abc abc
""" """
return s.decode('UTF-16LE') return s.decode('utf_16_le')
@cython.test_assert_path_exists( @cython.test_assert_path_exists(
...@@ -190,7 +190,7 @@ def bytes_decode_utf16_be(bytes s): ...@@ -190,7 +190,7 @@ def bytes_decode_utf16_be(bytes s):
>>> print(bytes_decode_utf16_be(s)) >>> print(bytes_decode_utf16_be(s))
abc abc
""" """
return s.decode('UTF-16BE') return s.decode('utf_16_be')
@cython.test_assert_path_exists( @cython.test_assert_path_exists(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment