Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Prev Previous commit
Next Next commit
handle case of negative shift
  • Loading branch information
eendebakpt committed Jan 29, 2025
commit 98015ac67a6c09304a88663eee8461a2143ad8a7
4 changes: 2 additions & 2 deletions Lib/test/test_opcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,10 +1430,10 @@ def binary_op_bitwise_extend():
if idx == 99:
b = -1
try:
a >> b
z = a >> b
except ValueError:
assert b == -1
self.assertEqual(a, 1)
self.assertEqual(z, 1)

@cpython_only
@requires_specialization_ft
Expand Down