|
|
@@ -12,7 +12,7 @@ MUST NOT be used. The shorted form of length encoding MUST be used. |
|
|
|
A longer length encoding MUST be rejected.''' |
|
|
|
|
|
|
|
__author__ = 'John-Mark Gurney' |
|
|
|
__copyright__ = 'Copyright 2016 John-Mark Gurney. All rights reserved.' |
|
|
|
__copyright__ = 'Copyright 2016-2019 John-Mark Gurney. All rights reserved.' |
|
|
|
__license__ = '2-clause BSD license' |
|
|
|
|
|
|
|
# Copyright 2016-2019, John-Mark Gurney |
|
|
@@ -674,3 +674,5 @@ class TestCode(unittest.TestCase): |
|
|
|
raise TypeError |
|
|
|
|
|
|
|
self.assertEqual(dumps(5), dumps(Dummy(), default=deffun)) |
|
|
|
# XXX make subobjects work |
|
|
|
self.assertEqual(dumps([5]), dumps([Dummy()], default=deffun)) |