Mercurial > cpython-lru_cache-weakref
annotate Lib/test/json_tests/test_default.py @ 78069:a8aa77458e12 3.2
Add c_size_t and c_ssize_t to the ctypes summary table.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 12 Jul 2012 20:31:50 +0200 |
| parents | 18a192ae6db9 |
| children |
| rev | line source |
|---|---|
| 70086 | 1 from test.json_tests import PyTest, CTest |
|
46676
4ded35754cb7
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
Brett Cannon <bcannon@gmail.com>
parents:
diff
changeset
|
2 |
|
4ded35754cb7
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
Brett Cannon <bcannon@gmail.com>
parents:
diff
changeset
|
3 |
| 70086 | 4 class TestDefault: |
|
46676
4ded35754cb7
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
Brett Cannon <bcannon@gmail.com>
parents:
diff
changeset
|
5 def test_default(self): |
|
66348
614c84670c63
Merged revisions 86596 via svnmerge from
Ezio Melotti <ezio.melotti@gmail.com>
parents:
46676
diff
changeset
|
6 self.assertEqual( |
| 70086 | 7 self.dumps(type, default=repr), |
| 8 self.dumps(repr(type))) | |
| 9 | |
| 10 | |
| 11 class TestPyDefault(TestDefault, PyTest): pass | |
| 12 class TestCDefault(TestDefault, CTest): pass |
