Skip to content

Commit 8e57f60

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 8871037 commit 8e57f60

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/test/test_bytes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,6 @@ def __int__(self):
780780

781781
pi = PseudoFloat(3.1415)
782782

783-
mod = operator.mod
784783
exceptions_params = [
785784
('%x format: an integer is required, not float', '%x', 3.14),
786785
('%X format: an integer is required, not float', '%X', 2.11),
@@ -796,8 +795,8 @@ def __int__(self):
796795
'%c', pi),
797796
]
798797

799-
for msg, format, value in exceptions_params:
800-
self.assertRaisesRegex(TypeError, msg , mod, format, value)
798+
for msg, format_str, value in exceptions_params:
799+
self.assertRaisesRegex(TypeError, msg, operator.mod, format_str, value)
801800

802801
def test_imod(self):
803802
b = self.type2test(b'hello, %b!')

0 commit comments

Comments
 (0)