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
commitc5144455d0f571c002678d369ec32707c6304e1f (patch)
treedca4cabafa20065a08d071d93d904a932bb7bbbb /tests/test_phystokens.py
parentd6e2d5c1034a7cc0e2bfac251bfe5b4ec8c73036 (diff)
downloadpython-coveragepy-c5144455d0f571c002678d369ec32707c6304e1f.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 74a5220..7edd6aa 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)