• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 7488371239
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: pbc_transformation
DEFAULT BRANCH: main
Ran 11 Jan 2024 12:14PM UTC
Jobs 1
Files 988
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jan 2024 11:55AM UTC coverage: 87.597% (-0.02%) from 87.615%
7488371239

push

github

web-flow
Warn on import failures within optional dependencies (#11522)

* Warn on import failures within optional dependencies

This distinguishes the case of "failed to find an optional dependency"
from "found the optional dependency, but it failed to import" within
the lazy testers.  Now, a warning containing the import failures will be
shown to users, rather than silently treating the dependency as missing.

This occurred recently when a PR caused an import failure in Aer, which
the CI suite failed to detect because the optional-dependency checkers
allowed the test suite to pass regardless.  Note that this commit alone
won't reliably cause the test suite to fail on a failed import because:

1. this only emits a warning, not an exception (by design).
2. the `unittest` decorators are evaluated during test discovery, which
   happens before we activate our increased warning filters.

This commit also unifies the now two Qiskit-specific warnings (the other
being `QPYLoadingDeprecatedFeatureWarning`) with a common
`QiskitWarning` subclass, much as we do for `QiskitError`.  This gives
us a convenient way to globally deny these errors during CI runs,
without turning _all_ `UserWarning`s into errors, which we're not ready
to do yet.

* Suppress unnecessary lint warnings

* Fix warning when failed import is parent package

59685 of 68136 relevant lines covered (87.6%)

203358.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7488371239.1 11 Jan 2024 12:14PM UTC 0
87.6
GitHub Action Run
Source Files on build 7488371239
Detailed source file information is not available for this build.
  • Back to Repo
  • 4ce0049a on github
  • Prev Build on gh-readonly-queue/main/pr-11531-b8d21aee18972fdaeb8e043614c509d89ee00d58 (#7487861374)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc