From 7d95e303613cfbbc9067f4813c641c61aa251dc8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 7 Feb 2015 10:53:13 -0500 Subject: Fully embrace SkipTest with our own method. Also, no test is conditionally defined. They call self.skip if they should be skippped. --- tests/test_phystokens.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/test_phystokens.py') 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) -- cgit v1.2.1