summaryrefslogtreecommitdiff
path: root/tests/test_util_typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_util_typing.py')
-rw-r--r--tests/test_util_typing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_util_typing.py b/tests/test_util_typing.py
index a2565f1e1..d167d3bb0 100644
--- a/tests/test_util_typing.py
+++ b/tests/test_util_typing.py
@@ -10,6 +10,7 @@
import sys
from numbers import Integral
+from struct import Struct
from typing import (Any, Callable, Dict, Generator, List, NewType, Optional, Tuple, TypeVar,
Union)
@@ -43,6 +44,7 @@ def test_restify():
assert restify(str) == ":class:`str`"
assert restify(None) == ":obj:`None`"
assert restify(Integral) == ":class:`numbers.Integral`"
+ assert restify(Struct) == ":class:`struct.Struct`"
assert restify(Any) == ":obj:`Any`"
@@ -124,6 +126,7 @@ def test_stringify():
assert stringify(str) == "str"
assert stringify(None) == "None"
assert stringify(Integral) == "numbers.Integral"
+ assert restify(Struct) == ":class:`struct.Struct`"
assert stringify(Any) == "Any"