We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c4a208 commit 9bbacdaCopy full SHA for 9bbacda
test_iconv.py
@@ -12,3 +12,10 @@ def test_with_length(self):
12
s = iconv.open("utf-16le", "utf-8")
13
r = s.iconv(b"Hallo", 11)
14
self.assertEqual(r, "Hallo".encode("utf-16le"))
15
+
16
+ def test_incorrect_input_type(self):
17
+ s = iconv.open("latin1", "utf-8")
18
+ with self.assertRaisesRegex(
19
+ TypeError, "iconv expects byte object as first argument"
20
+ ):
21
+ r = s.iconv("Hallo")
0 commit comments