Skip to content

Commit 9d2e801

Browse files
committed
fix: fix ubuntu test failed for ass_subscript2
1 parent c8905e3 commit 9d2e801

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_bytes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,10 @@ def ass_subscript(b, a): # MODIFIES!
26152615

26162616
def ass_subscript2(b, a, c): # MODIFIES!
26172617
b.wait()
2618-
a[:] = c
2618+
try:
2619+
a[:] = c
2620+
except BufferError:
2621+
return
26192622
assert b'\xdd' not in a
26202623

26212624
def mod(b, a):

0 commit comments

Comments
 (0)