mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Issue #26492: Added additional tests for exhausted iterators of mutable sequences.
This commit is contained in:
parent
fbb1c5ee06
commit
8dc2ec1513
3 changed files with 24 additions and 0 deletions
|
@ -17,6 +17,7 @@ import unittest
|
|||
import test.support
|
||||
import test.string_tests
|
||||
import test.buffer_tests
|
||||
import test.list_tests
|
||||
from test.support import bigaddrspacetest, MAX_Py_ssize_t
|
||||
|
||||
|
||||
|
@ -1323,6 +1324,7 @@ class ByteArrayTest(BaseBytesTest, unittest.TestCase):
|
|||
b[:] = data
|
||||
self.assertEqual(list(it), [])
|
||||
|
||||
test_exhausted_iterator = test.list_tests.CommonTest.test_exhausted_iterator
|
||||
|
||||
class AssortedBytesTest(unittest.TestCase):
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue