mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-115692: Add tests to increase json
coverage (#115693)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
9c93b7402b
commit
8fc953f606
4 changed files with 35 additions and 10 deletions
|
@ -23,8 +23,7 @@ class TestEncodeBasestringAscii:
|
|||
for input_string, expect in CASES:
|
||||
result = self.json.encoder.encode_basestring_ascii(input_string)
|
||||
self.assertEqual(result, expect,
|
||||
'{0!r} != {1!r} for {2}({3!r})'.format(
|
||||
result, expect, fname, input_string))
|
||||
f'{result!r} != {expect!r} for {fname}({input_string!r})')
|
||||
|
||||
def test_ordered_dict(self):
|
||||
# See issue 6105
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue