8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ce5bd2 commit 40cb2d9Copy full SHA for 40cb2d9
tests/test_stream.py
@@ -17,7 +17,7 @@
17
class HTMLInputStreamTest(unittest.TestCase):
18
19
def test_char_ascii(self):
20
- stream = HTMLInputStream("'")
+ stream = HTMLInputStream("'", encoding='ascii')
21
self.assertEquals(stream.charEncoding, 'ascii')
22
self.assertEquals(stream.char(), "'")
23
@@ -26,7 +26,7 @@ def test_char_null(self):
26
self.assertEquals(stream.char(), u'\ufffd')
27
28
def test_char_utf8(self):
29
- stream = HTMLInputStream(u'\u2018'.encode('utf-8'))
+ stream = HTMLInputStream(u'\u2018'.encode('utf-8'), encoding='utf-8')
30
self.assertEquals(stream.charEncoding, 'utf-8')
31
self.assertEquals(stream.char(), u'\u2018')
32
0 commit comments