Skip to content

Commit 8350eab

Browse files
committed
Fix test docstring
1 parent c508cde commit 8350eab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_funcs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,16 @@ def test_recurse(self, C, dict_class):
6868

6969
def test_non_atomic_types(self, C):
7070
"""
71-
Test subclasses of atomic types
71+
Non-atomic types that don't have special treatment for are serialized
72+
and the types are retained.
7273
"""
7374

7475
class Int(int):
7576
pass
7677

7778
c = C(Int(10), [Int(1), 2])
7879
expected = {"x": 10, "y": [1, 2]}
80+
7981
assert expected == asdict(c)
8082
assert type(asdict(c)["x"]) is Int
8183
assert type(asdict(c)["y"][0]) is Int

0 commit comments

Comments
 (0)