Logo
Explore Help
Sign In
ada/cpython
0
0
Fork 0
You've already forked cpython
mirror of https://github.com/AdaCore/cpython.git synced 2026-02-12 12:57:15 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
d988f429fe43808345812ef63dfa8da170c61871
cpython/Lib/json/tests/test_default.py

13 lines
294 B
Python
Raw Normal View History

#5723: Improve json tests to be executed with and without accelerations.
2011-05-14 06:24:53 +03:00
from json.tests import PyTest, CTest
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob Ippolito. Closes issue #2750.
2008-05-05 20:21:38 +00:00
#5723: Improve json tests to be executed with and without accelerations.
2011-05-14 06:24:53 +03:00
class TestDefault(object):
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob Ippolito. Closes issue #2750.
2008-05-05 20:21:38 +00:00
def test_default(self):
Merged revisions 86596 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
2010-11-21 13:34:58 +00:00
self.assertEqual(
#5723: Improve json tests to be executed with and without accelerations.
2011-05-14 06:24:53 +03:00
self.dumps(type, default=repr),
self.dumps(repr(type)))
class TestPyDefault(TestDefault, PyTest): pass
class TestCDefault(TestDefault, CTest): pass
Reference in New Issue Copy Permalink
Powered by Gitea Page: 656ms Template: 12ms
English
English
Licenses API