summaryrefslogtreecommitdiff
path: root/tests/test_phystokens.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_phystokens.py')
-rw-r--r--tests/test_phystokens.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py
index 74a52205..7edd6aa4 100644
--- a/tests/test_phystokens.py
+++ b/tests/test_phystokens.py
@@ -3,8 +3,6 @@
import os.path
import re
-from nose.plugins.skip import SkipTest
-
from coverage import env
from coverage.phystokens import source_token_lines, source_encoding
@@ -114,7 +112,7 @@ class SourceEncodingTest(CoverageTest):
if env.PYPY and env.PY3:
# PyPy3 gets this case wrong. Not sure what I can do about it,
# so skip the test.
- raise SkipTest
+ self.skip("PyPy3 is wrong about non-comment encoding. Skip it.")
# Should not detect anything here
source = b'def parse(src, encoding=None):\n pass'
self.assertEqual(source_encoding(source), DEF_ENCODING)