Skip to content

Commit deee951

Browse files
committed
add a test for bytes.find with non-int
1 parent 1678234 commit deee951

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_bytes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ def test_find():
559559
else:
560560
assert False, "should not reach here"
561561

562+
class SubInt(int):
563+
pass
564+
assert ba.find(i, SubInt(6)) == 7
565+
562566

563567
def test_same_id():
564568
empty_ids = set([id(bytes()) for i in range(100)])

0 commit comments

Comments
 (0)