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

fixing notebook test errors when no tests collected #4196

Merged
merged 2 commits into from
Jun 14, 2021

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Jun 12, 2021

Fix broken notebook tests in master.

It seems that when pattern does not match any tests in pytest -k pattern, pytest returns an exit code 5. This breaks the newly sharded notebook tests, which are leveraging the -k partition-n pattern for changed notebooks.

This fix adds the fix as per the recommendations of pytest-dev/pytest#2393.

@balopat balopat requested review from cduck, vtomole and a team as code owners June 12, 2021 06:46
@balopat balopat requested a review from viathor June 12, 2021 06:46
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Jun 12, 2021
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 14, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 14, 2021
@CirqBot CirqBot merged commit 2dafb29 into quantumlib:master Jun 14, 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 Jun 14, 2021
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Fix broken notebook tests in master.

It seems that when `pattern` does not match any tests in `pytest -k pattern`, pytest returns an exit code 5. This breaks the newly sharded notebook tests, which are leveraging the `-k partition-n` pattern for changed notebooks. 

This fix adds the fix as per the recommendations of pytest-dev/pytest#2393.
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.

3 participants