Skip to content

cmd simplify, use pytest stderr/stdout management, and use regex instead of fnmatch #711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 12, 2017

Conversation

gaborbernat
Copy link
Member

this is #660, but for some reason that did not get merged 🙅

@codecov
Copy link

codecov bot commented Dec 12, 2017

Codecov Report

Merging #711 into master will increase coverage by 0.01%.
The diff coverage is 93.1%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #711      +/-   ##
==========================================
+ Coverage    94.6%   94.61%   +0.01%     
==========================================
  Files          11       11              
  Lines        2426     2377      -49     
==========================================
- Hits         2295     2249      -46     
+ Misses        131      128       -3
Impacted Files Coverage Δ
tox/__init__.py 93.33% <ø> (ø) ⬆️
tox/venv.py 96.26% <ø> (ø) ⬆️
tox/_verlib.py 81.05% <ø> (ø) ⬆️
tox/__main__.py 0% <0%> (ø) ⬆️
tox/session.py 94.84% <100%> (+0.01%) ⬆️
tox/config.py 97.75% <100%> (+0.11%) ⬆️
tox/_quickstart.py 82.75% <100%> (ø) ⬆️
tox/_pytestplugin.py 95.17% <95.55%> (+0.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 087ed06...2f63a4b. Read the comment docs.

@@ -1 +1,2 @@
# noinspection PyUnresolvedReferences
from tox._pytestplugin import * # noqa

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please replace this with pytest_plugins = ['tox._pytestplugin']

@gaborbernat gaborbernat merged commit 6b16b09 into tox-dev:master Dec 12, 2017
@@ -34,10 +34,12 @@ def prepare(args):
return config


def main(args=None):
def main(args):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks the tox startup executable set up by setuptools. When that startup executable runs tox's main() function (and this is the one used), it does not pass it any arguments.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaborbernat - And we might want to add an external process test making sure those setuptools installed starter executables work correctly in the future?

(','.join(["'%s'" % m for m in venv.envconfig.missing_subs])))
"unresolvable substitution(s): %s. "
"Environment variables are missing or defined recursively." %
(','.join(["'%s'" % m for m in venv.envconfig.missing_subs])))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we do an extra level of indentation is such cases?

@gaborbernat gaborbernat deleted the cmd branch June 11, 2018 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants