bpo-39377: json: Remove the encoding option. (GH-18075)

This commit is contained in:
Inada Naoki 2020-01-20 13:54:00 +09:00 committed by GitHub
parent e96d954527
commit 5492bfcefe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 15 deletions

View file

@ -95,9 +95,5 @@ class TestDecode:
d = self.json.JSONDecoder()
self.assertRaises(ValueError, d.raw_decode, 'a'*42, -50000)
def test_deprecated_encode(self):
with self.assertWarns(DeprecationWarning):
self.loads('{}', encoding='fake')
class TestPyDecode(TestDecode, PyTest): pass
class TestCDecode(TestDecode, CTest): pass