summaryrefslogtreecommitdiff
path: root/tests/test_phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-07 10:53:13 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-07 10:53:13 -0500
commit7d95e303613cfbbc9067f4813c641c61aa251dc8 (patch)
tree7e2154fb47a6f0529f8edbe1a63d0ecee157778e /tests/test_phystokens.py
parent488981cbf86c58ec4aadcfe6b151eb50b7bf7fdf (diff)
downloadpython-coveragepy-git-7d95e303613cfbbc9067f4813c641c61aa251dc8.tar.gz
Fully embrace SkipTest with our own method.
Also, no test is conditionally defined. They call self.skip if they should be skippped.
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)