testing deprecated functions is annoying

Bug #1503918 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debtcollector
Fix Released
High
Joshua Harlow

Bug Description

When running tests, the warnings code that debtcollector uses calls into linecache (to fetch source lines and such); this can cause problems with mocking open() calls (which tests sometimes do); since linecache also tries to do an open? This ends badly.

So a way to disable debtcollector warnings usage in a temporary manner would be great.

with debtcollector.disable_warnings():
   <test-code>

Or a decorator equivalent...

Joshua Harlow (harlowja)
description: updated
summary: - Add ability for debtcollector to drop warnings on the floor
+ testing deprecated functions is annoying
Changed in debtcollector:
status: New → Triaged
importance: Undecided → High
Joshua Harlow (harlowja)
Changed in debtcollector:
assignee: nobody → Joshua Harlow (harlowja)
Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :
Changed in debtcollector:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.