[Pytest-commit] commit/tox: hpk42: fix issue314: fix invocation of .py scripts on windows

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Feb 11 12:02:40 EST 2016


1 new commit in tox:

https://bitbucket.org/hpk42/tox/commits/bfe2e9b0a5ef/
Changeset:   bfe2e9b0a5ef
User:        hpk42
Date:        2016-02-11 17:02:28+00:00
Summary:     fix issue314: fix invocation of .py scripts on windows
Affected #:  3 files

diff -r 2d5d0e7584cc4cc35cc7e0519ce9610dd52b7a62 -r bfe2e9b0a5ef459d4a57f695c6aa9e7cf0fa99a4 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,9 @@
+2.3.2
+-----
+
+- fix issue314: fix command invocation with .py scripts on windows.
+
+
 2.3.1
 -----
 

diff -r 2d5d0e7584cc4cc35cc7e0519ce9610dd52b7a62 -r bfe2e9b0a5ef459d4a57f695c6aa9e7cf0fa99a4 tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,6 @@
 [tox]
-envlist=py27,py26,py34,py33,py35,pypy,flakes,py26-bare
+envlist=x{,-hello}{,-world}
+#,py27,py26,py34,py33,py35,pypy,flakes,py26-bare
 
 [testenv:X]
 commands=echo {posargs}

diff -r 2d5d0e7584cc4cc35cc7e0519ce9610dd52b7a62 -r bfe2e9b0a5ef459d4a57f695c6aa9e7cf0fa99a4 tox/session.py
--- a/tox/session.py
+++ b/tox/session.py
@@ -211,7 +211,7 @@
         if sys.platform == "win32":
             ext = os.path.splitext(str(newargs[0]))[1].lower()
             if ext == '.py' and self.venv:
-                newargs = [str(self.envconfig.envpython)] + newargs
+                newargs = [str(self.venv.envconfig.envpython)] + newargs
 
         return newargs

Repository URL: https://bitbucket.org/hpk42/tox/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list