Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 1, 2025

  • I have added the tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

Summary

Fix the deprecation warning check to use the correct assertWarns() method rather than assertRaises() that is used to test for exceptions. This fixes the test suite when it is run without -Werror.

Details and comments

Since this is merely a change in tests, I don't think it needs a changelog entry.


This is an automatic backport of pull request #14145 done by Mergify.

Fix the deprecation warning check to use the correct `assertWarns()`
method rather than `assertRaises()` that is used to test for exceptions.
This fixes the test suite when it is run without `-Werror`.

(cherry picked from commit 040c9c8)
@mergify mergify bot requested a review from a team as a code owner April 1, 2025 09:23
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@github-actions github-actions bot added type: qa Issues and PRs that relate to testing and code quality Changelog: None Do not include in changelog Community PR PRs from contributors that are not 'members' of the Qiskit repo labels Apr 1, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 14192026483

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 21 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.01%) to 88.089%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/unitary_synthesis.rs 1 94.79%
crates/qasm2/src/lex.rs 2 92.98%
crates/qasm2/src/parse.rs 18 96.68%
Totals Coverage Status
Change from base Build 14179476751: 0.01%
Covered Lines: 72848
Relevant Lines: 82698

💛 - Coveralls

@mtreinish mtreinish added this pull request to the merge queue Apr 1, 2025
Merged via the queue into stable/2.0 with commit 651f233 Apr 1, 2025
27 checks passed
@mtreinish mtreinish deleted the mergify/bp/stable/2.0/pr-14145 branch April 29, 2025 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog Community PR PRs from contributors that are not 'members' of the Qiskit repo type: qa Issues and PRs that relate to testing and code quality
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants