-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
parametrize with marked callable objects #1362
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
@pfctdayelise, I suppose, you may review my pr, mayn't you? |
Hey @pfctdayelise, @nicoddemus, @RonnyPfannschmidt, @hpk42 please review my pr. I'm inclined to believe, I had fixed a nice bug :) |
This fix is actually very problematic Imagine using the same function as xfail in one call and as normal in an other call The mark would be carried trough and smear across usages @hpk the usage of marks in parametrization seems full of inconsistencies We should extend the api for consistent non decorator usages |
@RonnyPfannschmidt , can post a chunk of problematic code example, please? I'm afraid I can misinterpret:
|
On usage as marked parametrization a function is modified and can no longer be used in normal parametrization since it will carry on the xfail Applying xfail to a function/class will modify that function/class That problems is elevated since one of Python shortcomings is using the call protocol for decoration So we cannot know if a call to a mark is meant to create a markinfo or a decoration of the function/class |
@RonnyPfannschmidt , thank you for clarification. Yep, that's not pleasant moment. |
Hmmm given that, I think this solution should be withdrawn, no? |
@RonnyPfannschmidt do I understand right, that is core of problem, that |
Hey @RonnyPfannschmidt, @nicoddemus, I had updated my pr. Now |
TravisCI was triggered via reopen pr, but AppVeyor wasn't ;( |
the idea with the clone is a really cool hack however i fear it might create some issues down the line would you perhaps be available for chat on irc or a video conference? |
@RonnyPfannschmidt I would prefer to chat, my speaking english isn't good. When would you like to meet? I'm in Moscow time zone. Tomorrow is sunday and I will be free after 3 p.m. local time. But in weekdays I'm free after 9 p.m. only |
Unfortunately I can't make it today |
@sergeychipiga @RonnyPfannschmidt any news on this guys? |
no, this is currently lingering around - i'm not sure i can catch up with @sergeychipiga before the sprint this one is in part dependent on mark-refactor - which i ope to catch up with before the sprint |
closing this one, i think the only sane way to mark a parameter is to use a object thats a 2-tuple of value, marks - i#ll prototype a implementation later, it should be exposed as something like |
To fix #750