8000 handle case of negative shift · python/cpython@98015ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 98015ac

Browse files
committed
handle case of negative shift
1 parent ca60ccc commit 98015ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_opcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,10 +1430,10 @@ def binary_op_bitwise_extend():
14301430
if idx == 99:
14311431
b = -1
14321432
try:
1433-
a >> b
1433+
z = a >> b
14341434
except ValueError:
14351435
assert b == -1
1436-
self.assertEqual(a, 1)
1436+
self.assertEqual(z, 1)
14371437

14381438
@cpython_only
14391439
@requires_specialization_ft

0 commit comments

Comments
 (0)
0