Skip to content

Commit 2e3ee32

Browse files
committed
Fixed test for default fn.
1 parent 462b07d commit 2e3ee32

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.linting.pylintEnabled": true
3+
}

tests/lib_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import os
1919
import sys
2020
import unittest
21-
2221
from collections import OrderedDict
2322
from string import printable
2423

@@ -28,7 +27,6 @@
2827
# Make the `hypothesis` library optional, so that the other tests will
2928
# still run if it isn't installed.
3029
import hypothesis.strategies as some
31-
3230
from hypothesis import given
3331

3432
some_json = some.recursive(
@@ -375,7 +373,7 @@ def _custom_serializer(obj):
375373

376374
self.assertRaises(TypeError, json5.dumps, set())
377375
self.assertEqual(json5.dumps(set(), default=_custom_serializer),
378-
'something')
376+
'"something"')
379377

380378
def test_ensure_ascii(self):
381379
self.check(u'\u00fc', '"\\u00fc"')

0 commit comments

Comments
 (0)