~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Vincent Ladeuil
  • Date: 2011-11-29 16:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6331.
  • Revision ID: v.ladeuil+lp@free.fr-20111129162756-2mc5uztxmd37w5b8
Give meaningful deprecation warnings for deprecated test features

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
                                            % (self._module, self._name))
141
141
            use_msg = ' Use %s.%s instead.' % (self._replacement_module,
142
142
                                               self._replacement_name)
143
 
            symbol_versioning.warn(depr_msg + use_msg, DeprecationWarning)
 
143
            symbol_versioning.warn(depr_msg + use_msg, DeprecationWarning,
 
144
                                   stacklevel=5)
144
145
            # Import the new feature and use it as a replacement for the
145
146
            # deprecated one.
146
147
            self._feature = pyutils.get_named_object(