mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 19:24:57 +08:00
Merge pull request #2954 from eldpswp99/add-deque.__copy__
add deque.__copy__
This commit is contained in:
2 files changed
+1
-2
No files matched your search
@@ -719,8 +719,6 @@ class TestBasic(unittest.TestCase):
|
||||
self.assertNotEqual(id(d), id(e))
|
||||
self.assertNotEqual(list(d), list(e))
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_copy(self):
|
||||
mut = [10]
|
||||
d = deque([mut])
|
||||
|
||||
@@ -172,6 +172,7 @@ mod _collections {
|
||||
self.borrow_deque_mut().clear()
|
||||
}
|
||||
|
||||
#[pymethod(magic)]
|
||||
#[pymethod]
|
||||
fn copy(&self) -> Self {
|
||||
PyDeque {
|
||||
|
||||
Reference in new issue
Block a user