aboutsummaryrefslogtreecommitdiffstats
path: root/test/netlib/test_strutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/netlib/test_strutils.py')
-rw-r--r--test/netlib/test_strutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/netlib/test_strutils.py b/test/netlib/test_strutils.py
index 5be254a3..0f58cac5 100644
--- a/test/netlib/test_strutils.py
+++ b/test/netlib/test_strutils.py
@@ -8,6 +8,8 @@ def test_always_bytes():
assert strutils.always_bytes("foo") == b"foo"
with tutils.raises(ValueError):
strutils.always_bytes(u"\u2605", "ascii")
+ with tutils.raises(TypeError):
+ strutils.always_bytes(42, "ascii")
def test_native():