Skip to content
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

PYTHON-3124 Remove overlapping slots from _WriteResult subclasses #884

Merged
merged 1 commit into from
Feb 22, 2022
Merged

PYTHON-3124 Remove overlapping slots from _WriteResult subclasses #884

merged 1 commit into from
Feb 22, 2022

Conversation

ariebovenberg
Copy link
Contributor

As described in PYTHON-3124, there were some overlapping slots in _WriteResult subclasses.

Tests?

I see there have been several __slots__ issues in pymongo in the past. I discovered this slot issue with slotscheck, a tool I maintain. If you like, I can add it to CI as I've done for instagram/LibCST, sqlalchemy/sqlalchemy, and aio-libs/aiohttp.

@ariebovenberg
Copy link
Contributor Author

Hmmm, some test failures. The test logs appears to be behind corp.mongodb.com, which I don't have access to. I doubt that this __slots__ change broke a test this specific.

@ariebovenberg ariebovenberg changed the title remove overlapping slots from _WriteResult subclasses PYTHON-3124 remove overlapping slots from _WriteResult subclasses Feb 20, 2022
@ariebovenberg ariebovenberg changed the title PYTHON-3124 remove overlapping slots from _WriteResult subclasses PYTHON-3124 Remove overlapping slots from _WriteResult subclasses Feb 20, 2022
@juliusgeo
Copy link
Contributor

@ariebovenberg I took a look at the tests and they appear to be random failures. However, they are only happening with Auth+SSL, so I have restarted those failing tests to see if they pass once restarted.

Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

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

LGTM, the test failures are unrelated.

@ShaneHarvey ShaneHarvey merged commit 2f13a51 into mongodb:master Feb 22, 2022
@ariebovenberg ariebovenberg deleted the fix-slots branch February 22, 2022 18:29
@ShaneHarvey
Copy link
Member

Thanks @ariebovenberg!

blink1073 pushed a commit to blink1073/mongo-python-driver that referenced this pull request Feb 25, 2022
juliusgeo pushed a commit to juliusgeo/mongo-python-driver that referenced this pull request Apr 5, 2022
juliusgeo pushed a commit to juliusgeo/mongo-python-driver that referenced this pull request Apr 7, 2022
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