FAIL: test_bytearray_repr (test.test_bytes.AssortedBytesTest.test_bytearray_repr)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/path/to/RustPython/crates/pylib/Lib/test/test_bytes.py", line 2115, in test_bytearray_repr
self.assertEqual(f(bytearray(b"'")), r'''bytearray(b"\'")''') # "\'"
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'bytearray(b"\'")' != 'bytearray(b"\\\'")'
- bytearray(b"'")
+ bytearray(b"\'")
?
Feature
The result of
repr(bytearray(b"\'"))doesn't match with CPython.Python Documentation or reference to CPython source code
TBD