'sanity check for xfail(strict=True): a failing test should behave
exactly like a normal xfail.'

def test_strict_sanity(self, testdir):

    p = testdir.makepyfile("\n                                                import    pytest\n                                                @pytest.mark.xfail(reason='unsupported    feature',    strict=True)\n                                                def    test_foo():\n                                                                assert    0\n                                ")
    result = testdir.runpytest(p, '-rxX')
    result.stdout.fnmatch_lines(['*XFAIL*', '*unsupported    feature*'])
    assert (result.ret == 0)
