~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

(vila) Better deprecation warnings for _CompatabilityThunkFeature based test
 features (Vincent Ladeuil)

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(