diff options
author | Steffen Allner <sa@gocept.com> | 2016-06-20 18:13:37 +0200 |
---|---|---|
committer | Steffen Allner <sa@gocept.com> | 2016-06-20 18:13:37 +0200 |
commit | 59eeb645f38fff2828a0d9f0c72c4a2d39f638b6 (patch) | |
tree | 0bc1ae456c38b164b769bdde75b69c945941eb1a /tox/_pytestplugin.py | |
parent | 975d9c90c7e0739fa8f9ab79a6ac49dfa722450a (diff) | |
parent | cef9d6b5edf6c40362b0cf40c81201f7092607c4 (diff) | |
download | tox-hook/report-status.tar.gz |
Merge from defaulthook/report-status
Diffstat (limited to 'tox/_pytestplugin.py')
-rw-r--r-- | tox/_pytestplugin.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tox/_pytestplugin.py b/tox/_pytestplugin.py index f15d2ec..785070d 100644 --- a/tox/_pytestplugin.py +++ b/tox/_pytestplugin.py @@ -68,12 +68,12 @@ class ReportExpectMock: def generic_report(*args, **kwargs): self._calls.append((name,) + args) - print ("%s" % (self._calls[-1], )) + print("%s" % (self._calls[-1], )) return generic_report def action(self, venv, msg, *args): self._calls.append(("action", venv, msg)) - print ("%s" % (self._calls[-1], )) + print("%s" % (self._calls[-1], )) return Action(self.session, venv, msg, args) def getnext(self, cat): @@ -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") @@ -316,7 +319,7 @@ def initproj(request, tmpdir): for p in base.visit(lambda x: x.check(file=1)): manifestlines.append("include %s" % p.relto(base)) create_files(base, {"MANIFEST.in": "\n".join(manifestlines)}) - print ("created project in %s" % (base,)) + print("created project in %s" % (base,)) base.chdir() return initproj |