diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 7407c1cae54..d840bbe244a 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -810,7 +810,8 @@ class TestGetcallargsFunctions(unittest.TestCase): self.assertEqualException(f, '2, 3, 4') self.assertEqualException(f, '1, 2, 3, a=1') 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 self.assertEqualException(f, 'c=2') self.assertEqualException(f, '2, c=3') diff --git a/Lib/test/test_weakset.py b/Lib/test/test_weakset.py index 58a1f8790ae..3cddf40c248 100644 --- a/Lib/test/test_weakset.py +++ b/Lib/test/test_weakset.py @@ -335,6 +335,7 @@ class TestWeakSet(unittest.TestCase): try: it = iter(s) next(it) + del it # Schedule an item for removal and recreate it u = ustr(str(items.pop())) gc.collect() # just in case