Skip to content

Fix deque module name for test_repr #5799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Lib/test/test_dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2088,17 +2088,13 @@ class C:

self.assertDocStrEqual(C.__doc__, "C(x:List[int]=<factory>)")

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_docstring_deque_field(self):
@dataclass
class C:
x: deque

self.assertDocStrEqual(C.__doc__, "C(x:collections.deque)")

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_docstring_deque_field_with_default_factory(self):
@dataclass
class C:
Expand Down
2 changes: 2 additions & 0 deletions Lib/test/test_httplib.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import errno
from http import client, HTTPStatus
import io
Expand Down Expand Up @@ -1781,6 +1782,7 @@ def test_networked_bad_cert(self):

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skipIf(sys.platform == 'darwin', 'Occasionally success on macOS')
def test_local_unknown_cert(self):
# The custom cert isn't known to the default trust bundle
import ssl
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_reprlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ def test_tuple(self):
expected = repr(t3)[:-2] + "+++)"
eq(r3.repr(t3), expected)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_container(self):
from array import array
from collections import deque
Expand Down
2 changes: 1 addition & 1 deletion vm/src/stdlib/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod _collections {
use std::collections::VecDeque;

#[pyattr]
#[pyclass(name = "deque", unhashable = true)]
#[pyclass(module = "collections", name = "deque", unhashable = true)]
#[derive(Debug, Default, PyPayload)]
struct PyDeque {
deque: PyRwLock<VecDeque<PyObjectRef>>,
Expand Down
Loading