testing doc should explain TestCase.applyDeprecated

Bug #602996 reported by Parth Malwankar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
John C Barstow

Bug Description

testing doc should explain TestCase.applyDeprecated with example. This is only briefly mentioned in HACKING.txt.

Related branches

Parth Malwankar (parthm)
tags: added: doc
Parth Malwankar (parthm)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
John C Barstow (jbowtie) wrote :

So we use applyDeprecated when a test targets deprecated-but-supported API calls; that way the test swallows the warning message that would otherwise be displayed on the command line. In this way we prevent regressions for as long as we carry around the deprecated API.

Do I understand this correctly? And at some point (major versions?) we drop the deprecated API and associated tests.

Changed in bzr:
assignee: nobody → John C Barstow (jbowtie)
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 602996] Re: testing doc should explain TestCase.applyDeprecated

Exactly.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.