circuitpython/tests/basics/bytearray_count.py

8 lines
126 B
Python

try:
bytearray.count
except AttributeError:
print("SKIP")
raise SystemExit
print(bytearray(b"aaaa").count(b"a"))