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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70086
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
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
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
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
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
7 self.dumps(type, default=repr),
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
8 self.dumps(repr(type)))
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
9
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
10
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
11 class TestPyDefault(TestDefault, PyTest): pass
63fb2b811c9d #5723: merge with 3.1.
Ezio Melotti
parents: 68257
diff changeset
12 class TestCDefault(TestDefault, CTest): pass