summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_base64.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-16 09:24:16 (GMT)
committerGitHub <noreply@github.com>2020-01-16 09:24:16 (GMT)
commit210c19e3c5b86535a73487fa737752de8eb1d866 (patch)
tree81473e9158c48984c4e71827275143ed3c8c9504 /Lib/test/test_base64.py
parentfad8b5674c66d9e00bb788e30adddb0c256c787b (diff)
downloadcpython-210c19e3c5b86535a73487fa737752de8eb1d866.zip
cpython-210c19e3c5b86535a73487fa737752de8eb1d866.tar.gz
cpython-210c19e3c5b86535a73487fa737752de8eb1d866.tar.bz2
bpo-39351: Remove base64.encodestring() (GH-18022)
Remove base64.encodestring() and base64.decodestring(), aliases deprecated since Python 3.1: use base64.encodebytes() and base64.decodebytes() instead.
Diffstat (limited to 'Lib/test/test_base64.py')
-rw-r--r--Lib/test/test_base64.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_base64.py b/Lib/test/test_base64.py
index 7dba663..1dbeac4 100644
--- a/Lib/test/test_base64.py
+++ b/Lib/test/test_base64.py
@@ -18,14 +18,6 @@ class LegacyBase64TestCase(unittest.TestCase):
int_data = memoryview(b"1234").cast('I')
self.assertRaises(TypeError, f, int_data)
- def test_encodestring_warns(self):
- with self.assertWarns(DeprecationWarning):
- base64.encodestring(b"www.python.org")
-
- def test_decodestring_warns(self):
- with self.assertWarns(DeprecationWarning):
- base64.decodestring(b"d3d3LnB5dGhvbi5vcmc=\n")
-
def test_encodebytes(self):
eq = self.assertEqual
eq(base64.encodebytes(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=\n")