Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix dict/weakref/generators
  • Loading branch information
youknowone committed Jan 31, 2026
commit 2d5be2f522121002033edc714c47c55a25762996
2 changes: 2 additions & 0 deletions .cspell.dict/cpython.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ repr
resinfo
Rshift
SA_ONSTACK
saveall
scls
setdict
setfunc
Expand Down Expand Up @@ -178,6 +179,7 @@ Typeparam
typeparams
typeslots
unaryop
uncollectable
Unhandle
unparse
unparser
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,6 @@ def test_copy_fuzz(self):
self.assertNotEqual(d, d2)
self.assertEqual(len(d2), len(d) + 1)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_copy_maintains_tracking(self):
class A:
pass
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def f():
g.send(0)
self.assertEqual(next(g), 1)

@unittest.expectedFailure # TODO: RUSTPYTHON; NotImplementedError
def test_handle_frame_object_in_creation(self):

#Attempt to expose partially constructed frames
Expand Down
4 changes: 0 additions & 4 deletions Lib/test/test_weakref.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,11 +846,9 @@ def cb(self, ignore):
gc.collect()
self.assertEqual(alist, [])

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_gc_during_ref_creation(self):
self.check_gc_during_creation(weakref.ref)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_gc_during_proxy_creation(self):
self.check_gc_during_creation(weakref.proxy)

Expand Down Expand Up @@ -1365,11 +1363,9 @@ def check_len_race(self, dict_type, cons):
self.assertGreaterEqual(n2, 0)
self.assertLessEqual(n2, n1)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_weak_keyed_len_race(self):
self.check_len_race(weakref.WeakKeyDictionary, lambda k: (k, 1))

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_weak_valued_len_race(self):
self.check_len_race(weakref.WeakValueDictionary, lambda k: (1, k))

Expand Down