diff options
Diffstat (limited to 'Lib/test/json_tests/test_default.py')
-rw-r--r-- | Lib/test/json_tests/test_default.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/json_tests/test_default.py b/Lib/test/json_tests/test_default.py new file mode 100644 index 0000000000..6a03eeb834 --- /dev/null +++ b/Lib/test/json_tests/test_default.py @@ -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))) |