Commit 802505d0 authored by Georg Brandl's avatar Georg Brandl

Merge more test vs hashing-order fixes from 3.2.

parents 2fb477c0 178e5ea3
...@@ -810,7 +810,8 @@ class TestGetcallargsFunctions(unittest.TestCase): ...@@ -810,7 +810,8 @@ class TestGetcallargsFunctions(unittest.TestCase):
self.assertEqualException(f, '2, 3, 4') self.assertEqualException(f, '2, 3, 4')
self.assertEqualException(f, '1, 2, 3, a=1') self.assertEqualException(f, '1, 2, 3, a=1')
self.assertEqualException(f, '2, 3, 4, c=5') self.assertEqualException(f, '2, 3, 4, c=5')
self.assertEqualException(f, '2, 3, 4, a=1, c=5') # XXX: success of this one depends on dict order
## self.assertEqualException(f, '2, 3, 4, a=1, c=5')
# f got an unexpected keyword argument # f got an unexpected keyword argument
self.assertEqualException(f, 'c=2') self.assertEqualException(f, 'c=2')
self.assertEqualException(f, '2, c=3') self.assertEqualException(f, '2, c=3')
......
...@@ -335,6 +335,7 @@ class TestWeakSet(unittest.TestCase): ...@@ -335,6 +335,7 @@ class TestWeakSet(unittest.TestCase):
try: try:
it = iter(s) it = iter(s)
next(it) next(it)
del it
# Schedule an item for removal and recreate it # Schedule an item for removal and recreate it
u = ustr(str(items.pop())) u = ustr(str(items.pop()))
gc.collect() # just in case gc.collect() # just in case
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment