diff options
Diffstat (limited to 'Lib/json/tests/test_default.py')
-rw-r--r-- | Lib/json/tests/test_default.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Lib/json/tests/test_default.py b/Lib/json/tests/test_default.py index 6a03eeb..14dee27 100644 --- a/Lib/json/tests/test_default.py +++ b/Lib/json/tests/test_default.py @@ -1,9 +1,12 @@ -from unittest import TestCase +from json.tests import PyTest, CTest -import json -class TestDefault(TestCase): +class TestDefault: def test_default(self): self.assertEqual( - json.dumps(type, default=repr), - json.dumps(repr(type))) + self.dumps(type, default=repr), + self.dumps(repr(type))) + + +class TestPyDefault(TestDefault, PyTest): pass +class TestCDefault(TestDefault, CTest): pass |