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

support pytest.skip() in subprocess tests in _compat_test.py #3947

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Mar 21, 2021

Adds support for pytest.skip() in subprocess tests in _compat_test.py.

Also adding a conditional skip for the g3 env, where importlib_metadata doesn't exist.

Note: while using strings might seem wonky, pickling exceptions to get over the subprocess boundary is a bit more complicated - especially for pytest's internal types over which we don't have too much control.

@balopat balopat requested review from cduck, vtomole and a team as code owners March 21, 2021 16:53
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Mar 21, 2021
Copy link
Collaborator

@viathor viathor left a comment

Choose a reason for hiding this comment

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

Re not pickling: Makes sense. Also, pickle is inherently unsafe.

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 21, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Mar 21, 2021
@CirqBot CirqBot merged commit 4f50559 into quantumlib:master Mar 21, 2021
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants