deprecations warnings raised by CompatabilityThunkFeature are unhelpful

Bug #897718 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil

Bug Description

/home/vila/src/bzr/trunk/bzrlib/tests/features.py:143: DeprecationWarning: bzrlib.tests.SymlinkFeature was deprecated in version 2.5.0. Use bzrlib.tests.features.SymlinkFeature instead.
  symbol_versioning.warn(depr_msg + use_msg, DeprecationWarning)

Some stacklevel parameter is missing there.

/home/vila/.bazaar/plugins/upload/tests/test_upload.py:202: DeprecationWarning: bzrlib.tests.SymlinkFeature was deprecated in version 2.5.0. Use bzrlib.tests.features.SymlinkFeature instead.
  self.requireFeature(tests.SymlinkFeature)

with stacklevel=5 is far more helpful.

5 seems a bit high though, worth a test to check.

Related branches

Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
milestone: none → 2.5b4
status: Confirmed → 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.