diff --git a/html5lib/tests/test_stream.py b/html5lib/tests/test_stream.py
index 3f450ff5..d26dcf1f 100644
--- a/html5lib/tests/test_stream.py
+++ b/html5lib/tests/test_stream.py
@@ -293,7 +293,7 @@ def makefile(self, _mode, _bufsize=None):
def test_invalid_codepoints(inp, num):
stream = HTMLUnicodeInputStream(StringIO(inp))
for _i in range(len(inp)):
- _c = stream.char()
+ stream.char()
assert len(stream.errors) == num