Skip to content

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 ShaneHarvey requested a review from prashantmital July 9, 2021 23:43
@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

@ShaneHarvey ShaneHarvey Jul 12, 2021

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

2 participants