We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f192f commit f1ecd77Copy full SHA for f1ecd77
tests.py
@@ -121,9 +121,11 @@ def test_signer_kwargs(self):
121
self.assertEqual(s.loads(ts), u'hello')
122
123
def test_serializer_kwargs(self):
124
- secret_key = 'predictable-key'
+ s = self.make_serializer('predictable-key', serializer_kwargs={'sort_keys': True})
125
126
- s = self.make_serializer(secret_key, serializer_kwargs={'sort_keys': True})
+ # pickle tests pop serializer kwargs, so skip this test for those
127
+ if not s.serializer_kwargs:
128
+ return
129
130
ts1 = s.dumps({'c': 3, 'a': 1, 'b': 2})
131
ts2 = s.dumps(dict(a=1, b=2, c=3))
0 commit comments