mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Backport METH_FASTCALL from Python 3.7 (#328)
This commit is contained in:
parent
70c97f598b
commit
cf73bbd678
102 changed files with 2896 additions and 3301 deletions
3
third_party/python/Lib/test/test_weakref.py
vendored
3
third_party/python/Lib/test/test_weakref.py
vendored
|
@ -1660,6 +1660,7 @@ class MappingTestCase(TestBase):
|
|||
dict = weakref.WeakKeyDictionary()
|
||||
self.assertRegex(repr(dict), '<WeakKeyDictionary at 0x.*>')
|
||||
|
||||
@unittest.skipIf(True, "threading not yet implemented")
|
||||
def test_threaded_weak_valued_setdefault(self):
|
||||
d = weakref.WeakValueDictionary()
|
||||
with collect_in_thread():
|
||||
|
@ -1668,6 +1669,7 @@ class MappingTestCase(TestBase):
|
|||
self.assertIsNot(x, None) # we never put None in there!
|
||||
del x
|
||||
|
||||
@unittest.skipIf(True, "threading not yet implemented")
|
||||
def test_threaded_weak_valued_pop(self):
|
||||
d = weakref.WeakValueDictionary()
|
||||
with collect_in_thread():
|
||||
|
@ -1676,6 +1678,7 @@ class MappingTestCase(TestBase):
|
|||
x = d.pop(10, 10)
|
||||
self.assertIsNot(x, None) # we never put None in there!
|
||||
|
||||
@unittest.skipIf(True, "threading not yet implemented")
|
||||
def test_threaded_weak_valued_consistency(self):
|
||||
# Issue #28427: old keys should not remove new values from
|
||||
# WeakValueDictionary when collecting from another thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue