diff options
Diffstat (limited to 'Lib/test/test_json/test_default.py')
-rw-r--r-- | Lib/test/test_json/test_default.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_json/test_default.py b/Lib/test/test_json/test_default.py new file mode 100644 index 0000000..9b8325e --- /dev/null +++ b/Lib/test/test_json/test_default.py @@ -0,0 +1,12 @@ +from test.test_json import PyTest, CTest + + +class TestDefault: + def test_default(self): + self.assertEqual( + self.dumps(type, default=repr), + self.dumps(repr(type))) + + +class TestPyDefault(TestDefault, PyTest): pass +class TestCDefault(TestDefault, CTest): pass |