FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-147944: Increase range of bytes_per_sep by serhiy-storchaka · Pull Request #147946 · python/cpython · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Get rid of some special cases in tests for base64.b16encode().
  • Loading branch information
serhiy-storchaka committed Apr 1, 2026
commit c6735a87785bdaccbf6b16ac071c44ce2b8f9622
6 changes: 2 additions & 4 deletions Lib/test/test_base64.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,9 @@ def _common_test_wrapcol(self, func, data):
eq(func(data, wrapcol=80), expected)
eq(func(b'', wrapcol=0), func(b''))
eq(func(b'', wrapcol=1), func(b''))
if func is not base64.b16encode:
eq(func(data, wrapcol=sys.maxsize), expected)
eq(func(data, wrapcol=sys.maxsize), expected)
if check_impl_detail():
if func is not base64.b16encode:
eq(func(data, wrapcol=sys.maxsize*2), expected)
eq(func(data, wrapcol=sys.maxsize*2), expected)
with self.assertRaises(OverflowError):
func(data, wrapcol=2**1000)
with self.assertRaises(ValueError):
Expand Down
Loading

Back | FazBrowse Home | New Git URL