diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index c0127cabe..4df060766 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -1753,8 +1753,6 @@ class AssortedBytesTest(unittest.TestCase): self.assertEqual(bytes(b"abc") < b"ab", False) self.assertEqual(bytes(b"abc") <= b"ab", False) - # TODO: RUSTPYTHON - @unittest.expectedFailure @test.support.requires_docstrings def test_doc(self): self.assertIsNotNone(bytearray.__doc__) diff --git a/vm/src/builtins/bytearray.rs b/vm/src/builtins/bytearray.rs index 4dc7efe71..898745881 100644 --- a/vm/src/builtins/bytearray.rs +++ b/vm/src/builtins/bytearray.rs @@ -35,17 +35,6 @@ use crate::{ use bstr::ByteSlice; use std::mem::size_of; -/// "bytearray(iterable_of_ints) -> bytearray\n\ -/// bytearray(string, encoding[, errors]) -> bytearray\n\ -/// bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\n\ -/// bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n\ -/// bytearray() -> empty bytes array\n\n\ -/// Construct a mutable bytearray object from:\n \ -/// - an iterable yielding integers in range(256)\n \ -/// - a text string encoded using the specified encoding\n \ -/// - a bytes or a buffer object\n \ -/// - any object implementing the buffer API.\n \ -/// - an integer"; #[pyclass(module = false, name = "bytearray")] #[derive(Debug, Default)] pub struct PyByteArray { diff --git a/vm/src/builtins/bytes.rs b/vm/src/builtins/bytes.rs index 0b0ee5228..0ad88c8dc 100644 --- a/vm/src/builtins/bytes.rs +++ b/vm/src/builtins/bytes.rs @@ -23,15 +23,6 @@ use bstr::ByteSlice; use std::mem::size_of; use std::ops::Deref; -/// "bytes(iterable_of_ints) -> bytes\n\ -/// bytes(string, encoding[, errors]) -> bytes\n\ -/// bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer\n\ -/// bytes(int) -> bytes object of size given by the parameter initialized with null bytes\n\ -/// bytes() -> empty bytes object\n\nConstruct an immutable array of bytes from:\n \ -/// - an iterable yielding integers in range(256)\n \ -/// - a text string encoded using the specified encoding\n \ -/// - any object implementing the buffer API.\n \ -/// - an integer"; #[pyclass(module = false, name = "bytes")] #[derive(Clone, Debug)] pub struct PyBytes {