Closes #21346: Merge with 3.4
This commit is contained in:
commit
7101cb07ef
|
@ -411,7 +411,7 @@ class TestBasicOps(unittest.TestCase):
|
|||
|
||||
self.pickletest(permutations(values, r)) # test pickling
|
||||
|
||||
@support.impl_detail("tuple resuse is CPython specific")
|
||||
@support.impl_detail("tuple reuse is specific to CPython")
|
||||
def test_permutations_tuple_reuse(self):
|
||||
self.assertEqual(len(set(map(id, permutations('abcde', 3)))), 1)
|
||||
self.assertNotEqual(len(set(map(id, list(permutations('abcde', 3))))), 1)
|
||||
|
|
Loading…
Reference in New Issue