1 new commit in tox:
https://bitbucket.org/hpk42/tox/commits/4c796666bede/
Changeset: 4c796666bede
Branch: issue352
User: Oliver Bestwalter
Date: 2016-08-07 17:45:18+00:00
Summary: catch project deletion if envdir==toxinidir
Affected #: 1 file
diff -r 19a03d4e500ba859631bce6f6999de09b1a48cde -r
4c796666bedef8040e7d40d6f0d00bb9b86d47d0 tox/session.py
--- a/tox/session.py
+++ b/tox/session.py
@@ -356,6 +356,10 @@
if envconfig is None:
self.report.error("unknown environment %r" % name)
raise LookupError(name)
+ elif envconfig.envdir == self.config.toxinidir:
+ self.report.error(
+ "venv in %s would delete project" % envconfig.envdir)
+ raise tox.exception.ConfigError('envdir must not equal toxinidir')
venv = VirtualEnv(envconfig=envconfig, session=self)
self._name2venv[name] = venv
return venv
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