From 2b2c1e5b7bd53ceee8506e956b4d64afb07f868c Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 27 Mar 2014 14:01:38 +0100 Subject: [PATCH] condition for python3 of the xfailing test for 412 --- testing/test_capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_capture.py b/testing/test_capture.py index 058c81436..fe28f56bb 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -533,7 +533,7 @@ def test_capture_conftest_runtest_setup(testdir): assert 'hello19' not in result.stdout.str() -@pytest.mark.xfail(reason='demonstrate #412') +@pytest.mark.xfail(sys.version_info>=(3,), reason='demonstrate #412') def test_capture_badoutput(testdir): testdir.makepyfile(""" import os