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-2798 Workaround windows cert issue with SSL_CERT_FILE #670

Merged
merged 1 commit into from Jul 12, 2021

Conversation

ShaneHarvey
Copy link
Member

Apparently SSL_CERT_FILE does work on Windows. We can use it to workaround the issue in BUILD-13574.

@ShaneHarvey
Copy link
Member Author

Note that the Windows 3.10 failures are expected.

patcher = None


def setUpModule():
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a standard interface expected by unittest?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, why is this needed if we can just call self.patch_system_certs wherever required?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. https://docs.python.org/3/library/unittest.html#setupmodule-and-teardownmodule

It was easier to implement this for the entire module than it was to try do it via setUpClass() or setUp().

@ShaneHarvey ShaneHarvey merged commit 6d1ebf4 into mongodb:master Jul 12, 2021
ShaneHarvey added a commit to ShaneHarvey/mongo-python-driver that referenced this pull request Jul 12, 2021
ShaneHarvey added a commit that referenced this pull request Jul 12, 2021
@ShaneHarvey ShaneHarvey deleted the PYTHON-2798 branch July 12, 2021 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants