mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Closes #21346: Merge with 3.4
This commit is contained in:
commit
7101cb07ef
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue