-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
pdb: cls._pluginmanager, config etc might be None #5228
Comments
Fixes pytest-dev#5228. Original PR (rejected): pytest-dev#5244
Fixes pytest-dev#5228. Original PR (rejected): pytest-dev#5244
(not merged here, feel free to close it though again) |
Save original/current `pdb.set_trace` on the instance, not class. Tried to keep this minimal, more fixes forthcoming. Fixes pytest-dev#5228 properly (previously 9129ad3). Conflicts with pytest-dev/features due to: - cd10ee1 (minor, "improve header for _enter_pdb" (#21)) - 9659ce0 ("pdb: set excinfo in _postmortem_traceback, cut", #16; only a hack - WIP at #20 (ref: pytest-dev#6081))
JFI: can be fixed by not storing it on the class (blueyed#77, d7c3d9e). |
Sorry, why are you fixing it in your fork, instead of on the main repository? 🤔 |
Oh I see: #5244 Well it is a shame the discussion just lost traction there. |
Described in the commit: d7c3d9e (I've tried to rebase it on features, but there were two minor other things and I did not felt like writing a changelog for them etc).
Yeah, #5244 was my main motivation but the fix there was different. Note that this issue is not fixed, but OK for me to have it closed. |
If you have a problem with our iteration speed and/or believe our PRs take too long to be merged, we should discuss/address this. IMHO this is the responsible thing for a core maintainer to do, not just fix bugs in your fork and leave the core as is. This issue is particularly concerning, because it seems you addressed my concerns in the initial PR (about leaking state after To be clear: I don't have anything against someone fixing things in their fork and having no interest in pushing this upstream (after all it's all part of the license and everyone is welcome to it, after all it is OSS), I just don't think it is right for a core mainteiner to assume this posture. Don't you agree? |
@nicoddemus Edit: it was also you that closed the issue, I've explicitly re-opened it giving previous feedback about closing thing which I consider to be fixed for myself. As for the rest I consider this to be disrespectful and disheartening, but also off-topic here. (And just to be clear: I do not really have an alternative to having a fork in the first place, given that there are things you do not like to have here in general (dict for parametrize, capman-suspend-on-reading-from-stdin, removing hypothesis etc, and just being able to fix/improve minor issues on the go - a lot of them being sent back here also, which you should know / be aware of!)) |
@blueyed first of all, let me apologize, I understand that you are upset, and I am sorry. About this issue, the impression that I had initially was that you have fixed the problem in your fork and had no intention to bring the fix to the main repository. There's no rush to apply the fix, but any fix is welcome. After all you did say:
This is mainly what gave me that impression, but if that was not the case I'm sorry. About your fork with rejected features I think that's great (btw, it was not "me" that rejected parametrize with dicts, other maintainers felt the same way), I was concerned about bug fixes only. Also, I know it can be frustrating to have PRs sitting there for weeks or months, but sometimes people are busy or things slip through the cracks, feel free to ping them instead of closing them. Finally, sorry again for my response, it was not my intention to leave you disheartened. Cheers |
This can happen when debugging threads after pytest finished already (and the debugging plugin was unconfigured).
A failing test:
I think it should not pop the last set of attributes, but hard to say when the last time is maybe?!
IIRC it does not use pytest_unconfigure intentionally.
The test causes this:
I've seen this initially:
JFI: #5244 worked around this, by keeping pytest alive - which I am moving to my fork to close stale PRs on the main repo (blueyed#17).
The text was updated successfully, but these errors were encountered: