1 new commit in tox:
https://bitbucket.org/hpk42/tox/commits/af8d3ca4a530/
Changeset: af8d3ca4a530
User: hpk42
Date: 2015-11-26 13:54:53+00:00
Summary: fix issue252: allow environment names with special characters.
Thanks Julien Castets for initial PR and patience.
Affected #: 5 files
diff -r e9569646da4fc7b0da514c10857a45ca79872007 -r
af8d3ca4a53065d29c08ceb276040cb3bf42843f CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -7,6 +7,9 @@
- fix issue289: fix build_sphinx target, thanks Barry Warsaw.
+- fix issue252: allow environment names with special characters.
+ Thanks Julien Castets for initial PR and patience.
+
2.2.1
-----
diff -r e9569646da4fc7b0da514c10857a45ca79872007 -r
af8d3ca4a53065d29c08ceb276040cb3bf42843f setup.py
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@
description='virtualenv-based automation of test activities',
long_description=open("README.rst").read(),
url='http://tox.testrun.org/',
- version='2.3.0.dev1',
+ version='2.3.0.dev2',
license='http://opensource.org/licenses/MIT',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
author='holger krekel',
diff -r e9569646da4fc7b0da514c10857a45ca79872007 -r
af8d3ca4a53065d29c08ceb276040cb3bf42843f tests/test_z_cmdline.py
--- a/tests/test_z_cmdline.py
+++ b/tests/test_z_cmdline.py
@@ -301,6 +301,23 @@
])
+def test_venv_special_chars_issue252(cmd, initproj):
+ initproj("pkg123-0.7", filedefs={
+ 'tests': {'test_hello.py': "def test_hello(): pass"},
+ 'tox.ini': '''
+ [tox]
+ envlist = special&&1
+ [testenv:special&&1]
+ changedir=tests
+ '''
+ })
+ result = cmd.run("tox", )
+ assert result.ret == 0
+ result.stdout.fnmatch_lines([
+ "*installed*pkg123*"
+ ])
+
+
def test_unknown_environment(cmd, initproj):
initproj("env123-0.7", filedefs={
'tox.ini': ''
diff -r e9569646da4fc7b0da514c10857a45ca79872007 -r
af8d3ca4a53065d29c08ceb276040cb3bf42843f tox/__init__.py
--- a/tox/__init__.py
+++ b/tox/__init__.py
@@ -1,5 +1,5 @@
#
-__version__ = '2.3.0.dev1'
+__version__ = '2.3.0.dev2'
from .hookspecs import hookspec, hookimpl # noqa
diff -r e9569646da4fc7b0da514c10857a45ca79872007 -r
af8d3ca4a53065d29c08ceb276040cb3bf42843f tox/session.py
--- a/tox/session.py
+++ b/tox/session.py
@@ -533,11 +533,11 @@
action = self.newaction(venv, "envreport")
with action:
pip = venv.getcommandpath("pip")
- # we can't really call internal helpers here easily :/
- # output = venv._pcall([str(pip), "freeze"],
- # cwd=self.config.toxinidir,
- # action=action)
- output = py.process.cmdexec("%s freeze" % (pip))
+ output = venv._pcall([str(pip), "freeze"],
+ cwd=self.config.toxinidir,
+ action=action)
+ # the output contains a mime-header, skip it
+ output = output.split("\n\n")[-1]
packages = output.strip().split("\n")
action.setactivity("installed", ",".join(packages))
envlog = self.resultlog.get_envlog(venv.name)
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.
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit