summaryrefslogtreecommitdiff
path: root/tox/_pytestplugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'tox/_pytestplugin.py')
-rw-r--r--tox/_pytestplugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox/_pytestplugin.py b/tox/_pytestplugin.py
index f15d2ec..d7bff0c 100644
--- a/tox/_pytestplugin.py
+++ b/tox/_pytestplugin.py
@@ -195,6 +195,9 @@ class Cmd:
return py.std.subprocess.Popen(argv, stdout=stdout, stderr=stderr, **kw)
def run(self, *argv):
+ if argv[0] == "tox" and sys.version_info[:2] < (2,7):
+ pytest.skip("can not run tests involving calling tox on python2.6. "
+ "(and python2.6 is about to be deprecated anyway)")
argv = [str(x) for x in argv]
assert py.path.local.sysfind(str(argv[0])), argv[0]
p1 = self.tmpdir.join("stdout")