/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/developers/testing.txt

  • Committer: Martin Pool
  • Date: 2010-10-07 07:51:54 UTC
  • mfrom: (5463 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5476.
  • Revision ID: mbp@sourcefrog.net-20101007075154-a9ork2j441v6n3uv
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
717
717
        _test_needs_features = [features.apport]
718
718
 
719
719
 
 
720
Testing deprecated code
 
721
-----------------------
 
722
 
 
723
When code is deprecated, it is still supported for some length of time,
 
724
usually until the next major version. The ``applyDeprecated`` helper
 
725
wraps calls to deprecated code to verify that it is correctly issuing the
 
726
deprecation warning, and also prevents the warnings from being printed
 
727
during test runs.
 
728
 
 
729
Typically patches that apply the ``@deprecated_function`` decorator should
 
730
update the accompanying tests to use the ``applyDeprecated`` wrapper.
 
731
 
 
732
``applyDeprecated`` is defined in ``bzrlib.tests.TestCase``. See the API
 
733
docs for more details.
 
734
 
 
735
 
720
736
Testing exceptions and errors
721
737
-----------------------------
722
738