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

pytest-dev / pytest / 2078
51%

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

pending completion
2078

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

7 of 7 new or added lines in 2 files covered. (100.0%)

8236 of 8876 relevant lines covered (92.79%)

0.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
_pytest/python.py
Jobs
ID Job ID Ran Files Coverage
1 2078.1 (TESTENV=coveralls) 09 Nov 2016 12:26AM UTC 0
92.79
Travis Job 2078.1
Source Files on build 2078
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2078
  • Pull Request #2006
  • PR Base - master (#2077)
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