Skip to content

Commit 3a08f4c

Browse files
committed
fixup! Use the nose skip plugin to actually properly skip tests.
1 parent 0b207a7 commit 3a08f4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

html5lib/tests/test_encoding.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
except AttributeError:
99
unittest.TestCase.assertEqual = unittest.TestCase.assertEquals
1010

11+
from nose.plugins.skip import SkipTest
12+
1113
from .support import get_data_files, TestData, test_dir, errorMessage
1214
from html5lib import HTMLParser, inputstream
1315

@@ -41,7 +43,7 @@ def runPreScanEncodingTest(data, encoding):
4143

4244
# Very crude way to ignore irrelevant tests
4345
if len(data) > stream.numBytesMeta:
44-
return
46+
raise SkipTest()
4547

4648
assert encoding == stream.charEncoding[0], errorMessage(data, encoding, stream.charEncoding[0])
4749

0 commit comments

Comments
 (0)