diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-07 10:53:13 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-07 10:53:13 -0500 |
| commit | c5144455d0f571c002678d369ec32707c6304e1f (patch) | |
| tree | dca4cabafa20065a08d071d93d904a932bb7bbbb /tests/coveragetest.py | |
| parent | d6e2d5c1034a7cc0e2bfac251bfe5b4ec8c73036 (diff) | |
| download | python-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/coveragetest.py')
| -rw-r--r-- | tests/coveragetest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 23de2ec..e1f42bb 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -10,6 +10,8 @@ from coverage.test_helpers import ( EnvironmentAwareMixin, StdStreamCapturingMixin, TempDirMixin, ) +from nose.plugins.skip import SkipTest + from tests.backtest import run_command @@ -39,6 +41,10 @@ class CoverageTest( self.__class__.__name__, self._testMethodName, )) + def skip(self, reason): + self.class_behavior().skipped += 1 + raise SkipTest(reason) + def clean_local_file_imports(self): """Clean up the results of calls to `import_local_file`. |
