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

pytest-dev / pytest / 2078 / 1
51%
master: 51%

Build:
DEFAULT BRANCH: master
Ran 09 Nov 2016 12:26AM UTC
Files 40
Run time 2s
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

09 Nov 2016 12:22AM UTC coverage: 92.79% (-0.008%) from 92.798%
TESTENV=coveralls

Pull #2006

travis-ci

web-flow
Fix the stubborn test about cyclic references left by pytest.raises

In Python 2, a context manager's __exit__() leaves sys.exc_info with the exception values even when it was supposed
to suppress the exception, so we explicitly call sys.exc_clear() which removes the traceback and allow the object
to be released.

Also updated the test to not depend on the immediate destruction of the object but instead to ensure it is not being
tracked as a cyclic reference.

Fix #1965
Pull Request #2006: Fix memory leak with pytest.raises by using weakref

8236 of 8876 relevant lines covered (92.79%)

0.93 hits per line

Source Files on job 2078.1 (TESTENV=coveralls)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2078
  • Travis Job 2078.1
  • 00600202 on github
  • Prev Job for TESTENV=coveralls on master (#2077.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