Skip to content

Commit cfae32b

Browse files
committed
Remive test cases in base64.py
1 parent 96168b2 commit cfae32b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/test/test_base64.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,6 @@ def test_b64encode(self):
111111
eq(base64.urlsafe_b64encode('\xd3V\xbeo\xf7\x1d'), '01a-b_cd')
112112
# Non-bytes
113113
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))
121114

122115
def test_b64decode(self):
123116
eq = self.assertEqual

0 commit comments

Comments
 (0)