mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #10572: Moved json tests to Lib/test/json_tests.
Approved by Raymond Hettinger.
This commit is contained in:
parent
69b34bfe9c
commit
ff27ee0b40
18 changed files with 4 additions and 4 deletions
9
Lib/test/json_tests/test_default.py
Normal file
9
Lib/test/json_tests/test_default.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from unittest import TestCase
|
||||
|
||||
import json
|
||||
|
||||
class TestDefault(TestCase):
|
||||
def test_default(self):
|
||||
self.assertEqual(
|
||||
json.dumps(type, default=repr),
|
||||
json.dumps(repr(type)))
|
Loading…
Add table
Add a link
Reference in a new issue