mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-39377: json: Remove the encoding option. (GH-18075)
This commit is contained in:
parent
e96d954527
commit
5492bfcefe
3 changed files with 2 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue