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

Fix a few last instances of patch #852

Closed
wants to merge 3 commits into from
Closed

Fix a few last instances of patch #852

wants to merge 3 commits into from

Conversation

stroxler
Copy link
Contributor

Summary:
I have to stack a separate commit because there's a closed
PR that the bot won't seem to let me reopen, and I need
to test these changes on github :/

Differential Revision: D57359996

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57359996

Summary:
Our uses of `patch(...)` are broken for open-source, because
in our current open-source CI our `__name__` involves `pyre-check`,
which is not legal to use.

As a result, for patching anything internal we need to use
`patch.object` instead.

It's okay to use `patch(...)` for stdlib, that doesn't cause
problems (although I do wish we didn't have to rely on patching
quite so much!)

I'm breaking this into a couple of diffs to keep them small.

Differential Revision: D57358329
Summary:
This is the second of two commits removing the use of
`unittest.patch` on pyre-internal functions and classes;
instead we need to always use `patch.object` to avoid getting
errors on invalid names in github CI.

Differential Revision: D57359461
Summary:
Pull Request resolved: #852

I have to stack a separate commit because there's a closed
PR that the bot won't seem to let me reopen, and I need
to test these changes on github :/

Differential Revision: D57359996
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57359996

facebook-github-bot pushed a commit that referenced this pull request May 14, 2024
Summary:

I have to stack a separate commit because there's a closed
PR that the bot won't seem to let me reopen, and I need
to test these changes on github :/

Differential Revision: D57359996
facebook-github-bot pushed a commit that referenced this pull request May 14, 2024
Summary:

I have to stack a separate commit because there's a closed
PR that the bot won't seem to let me reopen, and I need
to test these changes on github :/

Differential Revision: D57359996
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1b4d431.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants