We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96168b2 commit cfae32bCopy full SHA for cfae32b
Lib/test/test_base64.py
@@ -111,13 +111,6 @@ def test_b64encode(self):
111
eq(base64.urlsafe_b64encode('\xd3V\xbeo\xf7\x1d'), '01a-b_cd')
112
# Non-bytes
113
eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
114
-
115
- def test_b64encode_warns(self):
116
- import warnings, base64
117
- with warnings.catch_warnings(record=True) as w:
118
- warnings.simplefilter('always', UserWarning)
119
- base64.b64encode(b'test')
120
- self.assertTrue(any('base64.b64encode returns str in Python 2 (bytes in 3.x)' == str(x.message) for x in w))
121
122
def test_b64decode(self):
123
eq = self.assertEqual
0 commit comments