Skip to content

Commit ad6cc23

Browse files
ApostolFetpicnixz
andauthored
Update Lib/test/test_bytes.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 8e57f60 commit ad6cc23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_bytes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,8 @@ def __int__(self):
796796
]
797797

798798
for msg, format_str, value in exceptions_params:
799-
self.assertRaisesRegex(TypeError, msg, operator.mod, format_str, value)
799+
with self.assertRaisesRegex(TypeError, msg):
800+
operator.mod(format_str, value)
800801

801802
def test_imod(self):
802803
b = self.type2test(b'hello, %b!')

0 commit comments

Comments
 (0)