diff options
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r-- | tests/coveragetest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 1a2983e6..17b3f15d 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -15,6 +15,7 @@ import shlex import sys import types +import pytest from unittest_mixins import ( EnvironmentAwareMixin, StdStreamCapturingMixin, TempDirMixin, DelayedAssertionMixin, @@ -99,6 +100,10 @@ class CoverageTest( self.last_command_output = None self.last_module_name = None + def xfail(self, msg): + """Mark this test as an expected failure.""" + pytest.xfail(msg) + def clean_local_file_imports(self): """Clean up the results of calls to `import_local_file`. |