Skip to content

Commit c6735a8

Browse files
Get rid of some special cases in tests for base64.b16encode().
1 parent 4497eab commit c6735a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/test/test_base64.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,9 @@ def _common_test_wrapcol(self, func, data):
216216
eq(func(data, wrapcol=80), expected)
217217
eq(func(b'', wrapcol=0), func(b''))
218218
eq(func(b'', wrapcol=1), func(b''))
219-
if func is not base64.b16encode:
220-
eq(func(data, wrapcol=sys.maxsize), expected)
219+
eq(func(data, wrapcol=sys.maxsize), expected)
221220
if check_impl_detail():
222-
if func is not base64.b16encode:
223-
eq(func(data, wrapcol=sys.maxsize*2), expected)
221+
eq(func(data, wrapcol=sys.maxsize*2), expected)
224222
with self.assertRaises(OverflowError):
225223
func(data, wrapcol=2**1000)
226224
with self.assertRaises(ValueError):

0 commit comments

Comments
 (0)