diff options
author | Barry Warsaw <barry@python.org> | 2021-09-15 19:55:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 19:55:24 -0700 |
commit | 07e737d002cdbf0bfee53248a652a86c9f93f02b (patch) | |
tree | e7c371587a38da2e4e095e603d86fcaf8bc9b1a5 /Lib/test/test_call.py | |
parent | a9757bf34d8b4cb3c24bbb70d50a06c815e2e8f3 (diff) | |
download | cpython-07e737d002cdbf0bfee53248a652a86c9f93f02b.tar.gz cpython-07e737d002cdbf0bfee53248a652a86c9f93f02b.zip |
bpo-45155 : Default arguments for int.to_bytes(length=1, byteorder=sys.byteorder) (#28265)
Add default arguments for int.to_bytes() and int.from_bytes()
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Diffstat (limited to 'Lib/test/test_call.py')
-rw-r--r-- | Lib/test/test_call.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py index 1d274521aeb..6936f093e3d 100644 --- a/Lib/test/test_call.py +++ b/Lib/test/test_call.py @@ -39,7 +39,7 @@ class CFunctionCallsErrorMessages(unittest.TestCase): self.assertRaisesRegex(TypeError, msg, {}.__contains__, 0, 1) def test_varargs3(self): - msg = r"^from_bytes\(\) takes exactly 2 positional arguments \(3 given\)" + msg = r"^from_bytes\(\) takes at most 2 positional arguments \(3 given\)" self.assertRaisesRegex(TypeError, msg, int.from_bytes, b'a', 'little', False) def test_varargs1min(self): |