Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_unicode.py::unmodified

== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 06:28:39) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-4.19.90-2202.1.0.0136.oe1.aarch64-aarch64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_821469æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3846617160
0:00:00 load avg: 0.87 Run 1 test sequentially in a single process
0:00:00 load avg: 0.87 [1/1] test_unicode
test_formatter_field_name_split (test.test_unicode.StringModuleTest.test_formatter_field_name_split) ... ok
test_formatter_parser (test.test_unicode.StringModuleTest.test_formatter_parser) ... ok
test_str_subclass_attr (test.test_unicode.StringModuleTest.test_str_subclass_attr) ... ok
test___contains__ (test.test_unicode.UnicodeTest.test___contains__) ... ok
test_adaptive_find (test.test_unicode.UnicodeTest.test_adaptive_find) ... ok
test_additional_rsplit (test.test_unicode.UnicodeTest.test_additional_rsplit) ... ok
test_additional_split (test.test_unicode.UnicodeTest.test_additional_split) ... ok
test_ascii (test.test_unicode.UnicodeTest.test_ascii) ... ok
test_bug1001011 (test.test_unicode.UnicodeTest.test_bug1001011) ... ok
test_bytes_comparison (test.test_unicode.UnicodeTest.test_bytes_comparison) ... ok
test_capitalize (test.test_unicode.UnicodeTest.test_capitalize) ... ok
test_capitalize_nonascii (test.test_unicode.UnicodeTest.test_capitalize_nonascii) ... ok
test_case_operation_overflow (test.test_unicode.UnicodeTest.test_case_operation_overflow) ... skipped 'requires 32-bit system'
test_casefold (test.test_unicode.UnicodeTest.test_casefold) ... ok
test_center (test.test_unicode.UnicodeTest.test_center) ... ok
test_check_encoding_errors (test.test_unicode.UnicodeTest.test_check_encoding_errors) ... ok
test_codecs (test.test_unicode.UnicodeTest.test_codecs) ... ok
test_codecs_charmap (test.test_unicode.UnicodeTest.test_codecs_charmap) ... ok
test_codecs_errors (test.test_unicode.UnicodeTest.test_codecs_errors) ... ok
test_codecs_idna (test.test_unicode.UnicodeTest.test_codecs_idna) ... ok
test_codecs_utf7 (test.test_unicode.UnicodeTest.test_codecs_utf7) ... ok
test_codecs_utf8 (test.test_unicode.UnicodeTest.test_codecs_utf8) ... ok
test_compare (test.test_unicode.UnicodeTest.test_compare) ... ok
test_comparison (test.test_unicode.UnicodeTest.test_comparison) ... ok
test_concatenation (test.test_unicode.UnicodeTest.test_concatenation) ... ok
test_constructor (test.test_unicode.UnicodeTest.test_constructor) ... ok
test_constructor_defaults (test.test_unicode.UnicodeTest.test_constructor_defaults)
Check the constructor argument defaults. ... ok
test_constructor_keyword_args (test.test_unicode.UnicodeTest.test_constructor_keyword_args)
Pass various keyword argument combinations to the constructor. ... ok
test_contains (test.test_unicode.UnicodeTest.test_contains) ... ok
test_conversion (test.test_unicode.UnicodeTest.test_conversion) ... ok
test_count (test.test_unicode.UnicodeTest.test_count) ... ok
test_endswith (test.test_unicode.UnicodeTest.test_endswith) ... ok
test_exhausted_iterator (test.test_unicode.UnicodeTest.test_exhausted_iterator) ... ok
test_expandtabs (test.test_unicode.UnicodeTest.test_expandtabs) ... ok
test_expandtabs_optimization (test.test_unicode.UnicodeTest.test_expandtabs_optimization) ... skipped 'implementation detail specific to cpython'
test_expandtabs_overflows_gracefully (test.test_unicode.UnicodeTest.test_expandtabs_overflows_gracefully) ... skipped 'only applies to 32-bit platforms'
test_extended_getslice (test.test_unicode.UnicodeTest.test_extended_getslice) ... ok
test_find (test.test_unicode.UnicodeTest.test_find) ... ok
test_find_etc_raise_correct_error_messages (test.test_unicode.UnicodeTest.test_find_etc_raise_correct_error_messages) ... FAIL
test_find_many_lengths (test.test_unicode.UnicodeTest.test_find_many_lengths) ... ok
test_find_periodic_pattern (test.test_unicode.UnicodeTest.test_find_periodic_pattern)
Cover the special path for periodic patterns. ... ok
test_find_shift_table_overflow (test.test_unicode.UnicodeTest.test_find_shift_table_overflow)
When the table of 8-bit shifts overflows. ... ok
test_find_with_memory (test.test_unicode.UnicodeTest.test_find_with_memory) ... ok
test_fixtype (test.test_unicode.UnicodeTest.test_fixtype) ... ok
test_floatformatting (test.test_unicode.UnicodeTest.test_floatformatting) ... ok
test_format (test.test_unicode.UnicodeTest.test_format) ... ok
test_format_auto_numbering (test.test_unicode.UnicodeTest.test_format_auto_numbering) ... ok
test_format_float (test.test_unicode.UnicodeTest.test_format_float) ... ok
test_format_huge_item_number (test.test_unicode.UnicodeTest.test_format_huge_item_number) ... ok
test_format_huge_precision (test.test_unicode.UnicodeTest.test_format_huge_precision) ... ok
test_format_huge_width (test.test_unicode.UnicodeTest.test_format_huge_width) ... ok
test_format_map (test.test_unicode.UnicodeTest.test_format_map) ... ok
test_format_subclass (test.test_unicode.UnicodeTest.test_format_subclass) ... ok
test_formatting (test.test_unicode.UnicodeTest.test_formatting) ... ok
test_formatting_c_limits (test.test_unicode.UnicodeTest.test_formatting_c_limits) ... skipped 'implementation detail specific to cpython'
test_formatting_huge_precision (test.test_unicode.UnicodeTest.test_formatting_huge_precision) ... ok
test_formatting_huge_precision_c_limits (test.test_unicode.UnicodeTest.test_formatting_huge_precision_c_limits) ... skipped 'implementation detail specific to cpython'
test_formatting_huge_width (test.test_unicode.UnicodeTest.test_formatting_huge_width) ... ok
test_formatting_with_enum (test.test_unicode.UnicodeTest.test_formatting_with_enum) ... ok
test_free_after_iterating (test.test_unicode.UnicodeTest.test_free_after_iterating) ... ok
test_getnewargs (test.test_unicode.UnicodeTest.test_getnewargs) ... FAIL
test_hash (test.test_unicode.UnicodeTest.test_hash) ... ok
test_index (test.test_unicode.UnicodeTest.test_index) ... ok
test_inplace_rewrites (test.test_unicode.UnicodeTest.test_inplace_rewrites) ... ok
test_invalid_cb_for_2bytes_seq (test.test_unicode.UnicodeTest.test_invalid_cb_for_2bytes_seq)
Test that an 'invalid continuation byte' error is raised when the ... ok
test_invalid_cb_for_3bytes_seq (test.test_unicode.UnicodeTest.test_invalid_cb_for_3bytes_seq)
Test that an 'invalid continuation byte' error is raised when the ... ok
test_invalid_cb_for_4bytes_seq (test.test_unicode.UnicodeTest.test_invalid_cb_for_4bytes_seq)
Test that an 'invalid continuation byte' error is raised when the ... ok
test_invalid_start_byte (test.test_unicode.UnicodeTest.test_invalid_start_byte)
Test that an 'invalid start byte' error is raised when the first byte ... ok
test_isalnum (test.test_unicode.UnicodeTest.test_isalnum) ... ok
test_isalpha (test.test_unicode.UnicodeTest.test_isalpha) ... ok
test_isascii (test.test_unicode.UnicodeTest.test_isascii) ... ok
test_isdecimal (test.test_unicode.UnicodeTest.test_isdecimal) ... ok
test_isdigit (test.test_unicode.UnicodeTest.test_isdigit) ... ok
test_isidentifier (test.test_unicode.UnicodeTest.test_isidentifier) ... ok
test_isidentifier_legacy (test.test_unicode.UnicodeTest.test_isidentifier_legacy) ... skipped 'implementation detail specific to cpython'
test_islower (test.test_unicode.UnicodeTest.test_islower) ... ok
test_isnumeric (test.test_unicode.UnicodeTest.test_isnumeric) ... ok
test_isprintable (test.test_unicode.UnicodeTest.test_isprintable) ... ok
test_isprintable_invariant (test.test_unicode.UnicodeTest.test_isprintable_invariant) ... skipped "resource 'cpu' is not enabled"
test_isspace (test.test_unicode.UnicodeTest.test_isspace) ... ok
test_isspace_invariant (test.test_unicode.UnicodeTest.test_isspace_invariant) ... skipped "resource 'cpu' is not enabled"
test_issue127903 (test.test_unicode.UnicodeTest.test_issue127903) ... ok
test_issue18183 (test.test_unicode.UnicodeTest.test_issue18183) ... ok
test_issue28598_strsubclass_rhs (test.test_unicode.UnicodeTest.test_issue28598_strsubclass_rhs) ... ok
test_issue8271 (test.test_unicode.UnicodeTest.test_issue8271) ... ok
test_istitle (test.test_unicode.UnicodeTest.test_istitle) ... ok
test_isupper (test.test_unicode.UnicodeTest.test_isupper) ... ok
test_iteration (test.test_unicode.UnicodeTest.test_iteration) ... ok
test_iterators (test.test_unicode.UnicodeTest.test_iterators) ... ok
test_iterators_invocation (test.test_unicode.UnicodeTest.test_iterators_invocation) ... ok
test_join (test.test_unicode.UnicodeTest.test_join) ... ok
test_join_overflow (test.test_unicode.UnicodeTest.test_join_overflow) ... skipped 'needs too much memory on a 64-bit platform'
test_literals (test.test_unicode.UnicodeTest.test_literals) ... ok
test_ljust (test.test_unicode.UnicodeTest.test_ljust) ... ok
test_lower (test.test_unicode.UnicodeTest.test_lower) ... ok
test_maketrans_translate (test.test_unicode.UnicodeTest.test_maketrans_translate) ... ok
test_mul (test.test_unicode.UnicodeTest.test_mul) ... ok
test_none_arguments (test.test_unicode.UnicodeTest.test_none_arguments) ... ok
test_partition (test.test_unicode.UnicodeTest.test_partition) ... ok
test_pickle_iterator (test.test_unicode.UnicodeTest.test_pickle_iterator) ... ok
test_printable_repr (test.test_unicode.UnicodeTest.test_printable_repr) ... ok
test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) ... 
  test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='a', struct_size=40, char_size=1) ... ERROR
  test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='é', struct_size=56, char_size=1) ... ERROR
  test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='€', struct_size=56, char_size=2) ... ERROR
  test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='\U0010ffff', struct_size=56, char_size=4) ... ERROR
test_removeprefix (test.test_unicode.UnicodeTest.test_removeprefix) ... ok
test_removesuffix (test.test_unicode.UnicodeTest.test_removesuffix) ... ok
test_repeat_id_preserving (test.test_unicode.UnicodeTest.test_repeat_id_preserving) ... ok
test_replace (test.test_unicode.UnicodeTest.test_replace) ... ok
test_replace_id (test.test_unicode.UnicodeTest.test_replace_id) ... skipped 'implementation detail specific to cpython'
test_replace_overflow (test.test_unicode.UnicodeTest.test_replace_overflow) ... skipped 'only applies to 32-bit platforms'
test_replace_uses_two_way_maxcount (test.test_unicode.UnicodeTest.test_replace_uses_two_way_maxcount) ... ok
test_repr (test.test_unicode.UnicodeTest.test_repr) ... ok
test_resize (test.test_unicode.UnicodeTest.test_resize) ... skipped 'implementation detail specific to cpython'
test_rfind (test.test_unicode.UnicodeTest.test_rfind) ... ok
test_rindex (test.test_unicode.UnicodeTest.test_rindex) ... ok
test_rjust (test.test_unicode.UnicodeTest.test_rjust) ... ok
test_rpartition (test.test_unicode.UnicodeTest.test_rpartition) ... ok
test_rsplit (test.test_unicode.UnicodeTest.test_rsplit) ... ok
test_slice (test.test_unicode.UnicodeTest.test_slice) ... ok
test_split (test.test_unicode.UnicodeTest.test_split) ... ok
test_splitlines (test.test_unicode.UnicodeTest.test_splitlines) ... ok
test_startswith (test.test_unicode.UnicodeTest.test_startswith) ... ok
test_startswith_endswith_errors (test.test_unicode.UnicodeTest.test_startswith_endswith_errors) ... ok
test_strip (test.test_unicode.UnicodeTest.test_strip) ... ok
test_strip_whitespace (test.test_unicode.UnicodeTest.test_strip_whitespace) ... ok
test_subclass_add (test.test_unicode.UnicodeTest.test_subclass_add) ... ok
test_subscript (test.test_unicode.UnicodeTest.test_subscript) ... FAIL
test_surrogates (test.test_unicode.UnicodeTest.test_surrogates) ... ok
test_swapcase (test.test_unicode.UnicodeTest.test_swapcase) ... ok
test_title (test.test_unicode.UnicodeTest.test_title) ... ok
test_ucs4 (test.test_unicode.UnicodeTest.test_ucs4) ... ok
test_unexpected_end_of_data (test.test_unicode.UnicodeTest.test_unexpected_end_of_data)
Test that an 'unexpected end of data' error is raised when the string ... ok
test_unicode_repr (test.test_unicode.UnicodeTest.test_unicode_repr) ... ok
test_upper (test.test_unicode.UnicodeTest.test_upper) ... ok
test_utf8_decode_invalid_sequences (test.test_unicode.UnicodeTest.test_utf8_decode_invalid_sequences) ... ok
test_utf8_decode_valid_sequences (test.test_unicode.UnicodeTest.test_utf8_decode_valid_sequences) ... ok
test_zfill (test.test_unicode.UnicodeTest.test_zfill) ... ok

======================================================================
ERROR: test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='a', struct_size=40, char_size=1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py", line 2510, in test_raiseMemError
    sys.getsizeof(char * 42),
        ^^^^^^^^^
TypeError: getsizeof(...)
    getsizeof(object, default) -> int

    Return the size of object in bytes.

sys.getsizeof(object, default) will always return default on PyPy, and
raise a TypeError if default is not provided.

First note that the CPython documentation says that this function may
raise a TypeError, so if you are seeing it, it means that the program
you are using is not correctly handling this case.

On PyPy, though, it always raises TypeError.  Before looking for
alternatives, please take a moment to read the following explanation as
to why it is the case.  What you are looking for may not be possible.

A memory profiler using this function is most likely to give results
inconsistent with reality on PyPy.  It would be possible to have
sys.getsizeof() return a number (with enough work), but that may or
may not represent how much memory the object uses.  It doesn't even
make really sense to ask how much *one* object uses, in isolation
with the rest of the system.  For example, instances have maps,
which are often shared across many instances; in this case the maps
would probably be ignored by an implementation of sys.getsizeof(),
but their overhead is important in some cases if they are many
instances with unique maps.  Conversely, equal strings may share
their internal string data even if they are different objects---or
empty containers may share parts of their internals as long as they
are empty.  Even stranger, some lists create objects as you read
them; if you try to estimate the size in memory of range(10**6) as
the sum of all items' size, that operation will by itself create one
million integer objects that never existed in the first place.


======================================================================
ERROR: test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='é', struct_size=56, char_size=1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py", line 2510, in test_raiseMemError
    sys.getsizeof(char * 42),
        ^^^^^^^^^
TypeError: getsizeof(...)
    getsizeof(object, default) -> int

    Return the size of object in bytes.

sys.getsizeof(object, default) will always return default on PyPy, and
raise a TypeError if default is not provided.

First note that the CPython documentation says that this function may
raise a TypeError, so if you are seeing it, it means that the program
you are using is not correctly handling this case.

On PyPy, though, it always raises TypeError.  Before looking for
alternatives, please take a moment to read the following explanation as
to why it is the case.  What you are looking for may not be possible.

A memory profiler using this function is most likely to give results
inconsistent with reality on PyPy.  It would be possible to have
sys.getsizeof() return a number (with enough work), but that may or
may not represent how much memory the object uses.  It doesn't even
make really sense to ask how much *one* object uses, in isolation
with the rest of the system.  For example, instances have maps,
which are often shared across many instances; in this case the maps
would probably be ignored by an implementation of sys.getsizeof(),
but their overhead is important in some cases if they are many
instances with unique maps.  Conversely, equal strings may share
their internal string data even if they are different objects---or
empty containers may share parts of their internals as long as they
are empty.  Even stranger, some lists create objects as you read
them; if you try to estimate the size in memory of range(10**6) as
the sum of all items' size, that operation will by itself create one
million integer objects that never existed in the first place.


======================================================================
ERROR: test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='€', struct_size=56, char_size=2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py", line 2510, in test_raiseMemError
    sys.getsizeof(char * 42),
        ^^^^^^^^^
TypeError: getsizeof(...)
    getsizeof(object, default) -> int

    Return the size of object in bytes.

sys.getsizeof(object, default) will always return default on PyPy, and
raise a TypeError if default is not provided.

First note that the CPython documentation says that this function may
raise a TypeError, so if you are seeing it, it means that the program
you are using is not correctly handling this case.

On PyPy, though, it always raises TypeError.  Before looking for
alternatives, please take a moment to read the following explanation as
to why it is the case.  What you are looking for may not be possible.

A memory profiler using this function is most likely to give results
inconsistent with reality on PyPy.  It would be possible to have
sys.getsizeof() return a number (with enough work), but that may or
may not represent how much memory the object uses.  It doesn't even
make really sense to ask how much *one* object uses, in isolation
with the rest of the system.  For example, instances have maps,
which are often shared across many instances; in this case the maps
would probably be ignored by an implementation of sys.getsizeof(),
but their overhead is important in some cases if they are many
instances with unique maps.  Conversely, equal strings may share
their internal string data even if they are different objects---or
empty containers may share parts of their internals as long as they
are empty.  Even stranger, some lists create objects as you read
them; if you try to estimate the size in memory of range(10**6) as
the sum of all items' size, that operation will by itself create one
million integer objects that never existed in the first place.


======================================================================
ERROR: test_raiseMemError (test.test_unicode.UnicodeTest.test_raiseMemError) (char='\U0010ffff', struct_size=56, char_size=4)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py", line 2510, in test_raiseMemError
    sys.getsizeof(char * 42),
        ^^^^^^^^^
TypeError: getsizeof(...)
    getsizeof(object, default) -> int

    Return the size of object in bytes.

sys.getsizeof(object, default) will always return default on PyPy, and
raise a TypeError if default is not provided.

First note that the CPython documentation says that this function may
raise a TypeError, so if you are seeing it, it means that the program
you are using is not correctly handling this case.

On PyPy, though, it always raises TypeError.  Before looking for
alternatives, please take a moment to read the following explanation as
to why it is the case.  What you are looking for may not be possible.

A memory profiler using this function is most likely to give results
inconsistent with reality on PyPy.  It would be possible to have
sys.getsizeof() return a number (with enough work), but that may or
may not represent how much memory the object uses.  It doesn't even
make really sense to ask how much *one* object uses, in isolation
with the rest of the system.  For example, instances have maps,
which are often shared across many instances; in this case the maps
would probably be ignored by an implementation of sys.getsizeof(),
but their overhead is important in some cases if they are many
instances with unique maps.  Conversely, equal strings may share
their internal string data even if they are different objects---or
empty containers may share parts of their internals as long as they
are empty.  Even stranger, some lists create objects as you read
them; if you try to estimate the size in memory of range(10**6) as
the sum of all items' size, that operation will by itself create one
million integer objects that never existed in the first place.


======================================================================
FAIL: test_find_etc_raise_correct_error_messages (test.test_unicode.UnicodeTest.test_find_etc_raise_correct_error_messages)
----------------------------------------------------------------------
TypeError: str.find() takes from 2 to 4 positional arguments but 5 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/string_tests.py", line 1508, in test_find_etc_raise_correct_error_messages
    self.assertRaisesRegex(TypeError, r'^find\(', s.find,
         ^^^^^^^^^^^^^^^^^
AssertionError: "^find\(" does not match "str.find() takes from 2 to 4 positional arguments but 5 were given"

======================================================================
FAIL: test_getnewargs (test.test_unicode.UnicodeTest.test_getnewargs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py", line 2539, in test_getnewargs
    self.assertIsNot(args[0], text)
         ^^^^^^^^^^^
AssertionError: unexpectedly identical: 'abc'

======================================================================
FAIL: test_subscript (test.test_unicode.UnicodeTest.test_subscript)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/string_tests.py", line 1267, in test_subscript
    self.checkraises(TypeError, 'abc', '__getitem__', idx_type, expected_msg=expected_msg)
         ^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/string_tests.py", line 91, in checkraises
    self.assertEqual(str(cm.exception), expected_msg)
         ^^^^^^^^^^^
AssertionError: 'string indices must be integers or slices, not str' != "string indices must be integers, not 'str'"
- string indices must be integers or slices, not str
?                                ----------
+ string indices must be integers, not 'str'
?                                      +   +


----------------------------------------------------------------------
Ran 135 tests in 1.547s

FAILED (failures=3, errors=4, skipped=12)
0:00:01 load avg: 0.88 [1/1/1] test_unicode failed (4 errors, 3 failures)

== Tests result: FAILURE ==

1 test failed:
    test_unicode

Total duration: 1.9 sec
Total tests: run=135 failures=3 skipped=12
Total test files: run=1/1 failed=1
Result: FAILURE
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2252: SyntaxWarning: invalid octal escape sequence '\202'
  self.assertRaises(UnicodeError, 'Andr\202 x'.encode, 'ascii')
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2253: SyntaxWarning: invalid octal escape sequence '\202'
  self.assertRaises(UnicodeError, 'Andr\202 x'.encode, 'ascii','strict')
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2254: SyntaxWarning: invalid octal escape sequence '\202'
  self.assertEqual('Andr\202 x'.encode('ascii','ignore'), b"Andr x")
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2255: SyntaxWarning: invalid octal escape sequence '\202'
  self.assertEqual('Andr\202 x'.encode('ascii','replace'), b"Andr? x")
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2256: SyntaxWarning: invalid octal escape sequence '\202'
  self.assertEqual('Andr\202 x'.encode('ascii', 'replace'),
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2257: SyntaxWarning: invalid octal escape sequence '\202'
  'Andr\202 x'.encode('ascii', errors='replace'))
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2258: SyntaxWarning: invalid octal escape sequence '\202'
  self.assertEqual('Andr\202 x'.encode('ascii', 'ignore'),
/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_unicode.py:2259: SyntaxWarning: invalid octal escape sequence '\202'
  'Andr\202 x'.encode(encoding='ascii', errors='ignore'))
test test_unicode failed
builder: pypy-c-jit-linux-aarch64 build #2946+
test: lib-python/3/test/test_unicode.py::unmodified