-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
tests of (and fixes for) Config.fromdictargs #1060
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
Conversation
Conflicts: _pytest/__init__.py
Thanks for your work anyway @bukzor! Sorry for asking, was this requested by someone or did you just decided to add some tests out of the blue? Anyway, this is very much appreciated! |
@nicoddemus This is causing me major pain problems under xdist: the -c option is not honored. I discussed my issues with ronny in #pylib and we agreed a good starting point would be a test suite. |
Here's the transcript, for context (also so I don't lose it):
|
4ee50b7
to
6abdead
Compare
In total, minus ~3 bugs, plus 51 lines of test, and minus 1 line of implementation. |
0931cab
to
39b51c6
Compare
TheParse known vs parse known and unknown distinction is needed currently since that api is used by downstreams and the change you pushed breaks them The rest of the change looks fabulous at first glance, since subtle backward compatibility issues are involved I'll do a deeper review them s weekend |
I kept those bits separate, easily pulled back out. Shall do. If this gets merged, when might it make it to pypi? I'll start using this On Thu, Sep 24, 2015, 21:56 Ronny Pfannschmidt [email protected]
|
I suppose that needs a test case as well We can't merge the pr as is tho, I can't do a cleanup today |
So what is the original issue? That "py.test -c some-ini -n1" does not work? |
3a5dd7a
to
19a6d1a
Compare
migrated to #1124 |
failures shown here:
I tried quite hard to also supply a fixing patch, but there's a tangled hairball of mutation in parse, _preparse, Config._parser.get_parser() that I couldn't break through.
This patch fixes all the assertions but the (most important)
inifile
assertion, and is still kind of messy: