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

Make assert_logs levels interval based #3914

Merged
merged 5 commits into from
Mar 16, 2021

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Mar 14, 2021

Renames cirq.testing.assert_logs parameter level -> min_level and adds a new parameter max_level.
This is to enable more sophisticated logs assertions based on multiple levels.

===== Release note ======

  • cirq.testing.assert_logs parameter level is now deprecated and will be removed in Cirq v0.12. Please use instead min_level.

======================

@balopat balopat requested review from cduck, vtomole and a team as code owners March 14, 2021 15:54
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Mar 14, 2021
cirq/testing/logs_test.py Show resolved Hide resolved
cirq/testing/logs.py Show resolved Hide resolved
cirq/testing/logs.py Show resolved Hide resolved
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 16, 2021
@CirqBot
Copy link
Collaborator

CirqBot commented Mar 16, 2021

Automerge cancelled: There are merge conflicts.

@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 16, 2021
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 16, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Mar 16, 2021
@CirqBot CirqBot merged commit 9465afc into quantumlib:master Mar 16, 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 16, 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. kind/deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants