summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bytearray_count.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/bytearray_count.py')
-rw-r--r--tests/basics/bytearray_count.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/bytearray_count.py b/tests/basics/bytearray_count.py
new file mode 100644
index 0000000000..a151c1e818
--- /dev/null
+++ b/tests/basics/bytearray_count.py
@@ -0,0 +1,7 @@
+try:
+ bytearray.count
+except AttributeError:
+ print("SKIP")
+ raise SystemExit
+
+print(bytearray(b"aaaa").count(b"a"))