File tree Expand file tree Collapse file tree 3 files changed +0
-22
lines changed Expand file tree Collapse file tree 3 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -1753,8 +1753,6 @@ def test_compare_bytes_to_bytearray(self):
1753
1753
self .assertEqual (bytes (b"abc" ) < b"ab" , False )
1754
1754
self .assertEqual (bytes (b"abc" ) <= b"ab" , False )
1755
1755
1756
- # TODO: RUSTPYTHON
1757
- @unittest .expectedFailure
1758
1756
@test .support .requires_docstrings
1759
1757
def test_doc (self ):
1760
1758
self .assertIsNotNone (bytearray .__doc__ )
Original file line number Diff line number Diff line change @@ -35,17 +35,6 @@ use crate::{
35
35
use bstr:: ByteSlice ;
36
36
use std:: mem:: size_of;
37
37
38
- /// "bytearray(iterable_of_ints) -> bytearray\n\
39
- /// bytearray(string, encoding[, errors]) -> bytearray\n\
40
- /// bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\n\
41
- /// bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n\
42
- /// bytearray() -> empty bytes array\n\n\
43
- /// Construct a mutable bytearray object from:\n \
44
- /// - an iterable yielding integers in range(256)\n \
45
- /// - a text string encoded using the specified encoding\n \
46
- /// - a bytes or a buffer object\n \
47
- /// - any object implementing the buffer API.\n \
48
- /// - an integer";
49
38
#[ pyclass( module = false , name = "bytearray" ) ]
50
39
#[ derive( Debug , Default ) ]
51
40
pub struct PyByteArray {
Original file line number Diff line number Diff line change @@ -23,15 +23,6 @@ use bstr::ByteSlice;
23
23
use std:: mem:: size_of;
24
24
use std:: ops:: Deref ;
25
25
26
- /// "bytes(iterable_of_ints) -> bytes\n\
27
- /// bytes(string, encoding[, errors]) -> bytes\n\
28
- /// bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer\n\
29
- /// bytes(int) -> bytes object of size given by the parameter initialized with null bytes\n\
30
- /// bytes() -> empty bytes object\n\nConstruct an immutable array of bytes from:\n \
31
- /// - an iterable yielding integers in range(256)\n \
32
- /// - a text string encoded using the specified encoding\n \
33
- /// - any object implementing the buffer API.\n \
34
- /// - an integer";
35
26
#[ pyclass( module = false , name = "bytes" ) ]
36
27
#[ derive( Clone , Debug ) ]
37
28
pub struct PyBytes {
You can’t perform that action at this time.
0 commit comments