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

Qiskit / qiskit / 25822818832 / 1
88%
main: 88%

Build:
DEFAULT BRANCH: main
Ran 13 May 2026 08:20PM UTC
Files 939
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

13 May 2026 07:25PM UTC coverage: 87.639% (-0.005%) from 87.644%
25822818832.1

push

github

web-flow
Fix file leak from tests (#16156)

* Fix file leak from tests

In the the phase oracle tests two tests were creating temporary files in
the unit tests to write out a dimacs file to use as an input to
the phase oracle's .from_dimacs() file method. This temporary file was
created with mkstemp, but then nothing would cleanup that created file.
This meant that every time you ran the unit tests a new pair of temporary
files were created and remained on the filesystem. This fixes this
oversight and adds an .addCleanup() call to remove the file after the
test methods exit.

* Avoid trying to delete an open file descriptor for Windows

Windows has the additional limitation that you can't try to close a file
while something has it open. To workaround this limitation this changes
how the tempfile is created to use a NamedTemporaryFile context manager
to ensure we always close the file descriptor from the test code once we
generate the file. Then we pass the file name to the function under test
and still use addCleanup to ensure we always remove the file.

107049 of 122147 relevant lines covered (87.64%)

961572.09 hits per line

Source Files on job 25822818832.1
  • Tree
  • List 939
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25822818832
  • 4b22ccf0 on github
  • Prev Job for on main (#25723423515.1)
  • Next Job for on main (#25843677328.1)
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