summaryrefslogtreecommitdiff
path: root/tests/run/bytearray_iter.py
blob: 4beb8e2857bed2112cb4f53a4701ef5956e51a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# mode: run
# ticket: 3473

def test_bytearray_iteration(src):
    """
    >>> src = b'123'
    >>> test_bytearray_iteration(src)
    49
    50
    51
    """

    data = bytearray(src)
    for elem in data:
        print(elem)