Opened 4 years ago

Closed 7 months ago

#6266 enhancement closed fixed (fixed)


Reported by: tom.prince Owned by: adiroiban
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch: branches/getDeprecationSuppression-removal-6266
branch-diff, diff-cov, branch-cov, buildbot

Description (last modified by tom.prince)

According to #5645, when deprecating something, the tests of that functionality need to remain, but not emit deprecation warnings.

In #5544, a private function _getDeprecationSuppression was added to generate an approriate narrow suppression (to pass to .suppress of a test case or method).

This function should be made public.

Change History (5)

comment:1 Changed 4 years ago by tom.prince

  • Description modified (diff)

(fix ticket link in description)

comment:2 Changed 8 months ago by adiroiban

  • Branch set to branches/getDeprecationSuppression-removal-6266
  • Keywords review added

I think that this API is no longer valid and the whole suppression thing is no longer valid.

I have removed the api to clean the code.

please review.


comment:3 Changed 7 months ago by glyph

  • Keywords review removed
  • Owner set to adiroiban
  • Summary changed from Test, document and make public twisted.python.test.test_util._getDeprecationSuppression. to Removetwisted.python.test.test_util._getDeprecationSuppression.

I think that this API is no longer valid and the whole suppression thing is no longer valid.

Just out of curiosity, is there documentation someplace about the right way to do this now, if it's not using suppressions?

I have removed the api to clean the code.

LGTM. If you can fix the pyflakes error that would be nice, or file a bug on braid or something if it's spurious.

please review.

Looks like this is just deleting totally unused and untested code, so: go for it!

comment:4 Changed 7 months ago by adiroiban

Thanks for the review.

I hope that this is covered by current documentation here

Not sure if this is the same thing, since the removed code is never used and I am not sure if this is about the same thing.

pyflakes error is valid... pyflakes is most of the time right :)

I hope that soon we will have a twisted helper to run pyflakes on local branches.

will merge

comment:5 Changed 7 months ago by adiroiban

  • Resolution set to fixed
  • Status changed from new to closed

(In [47345]) Merge getDeprecationSuppression-removal-6266: Remove t.p.test.test_util._getDeprecationSuppression.

Author: adiroiban Reviewer: glyph Fixes: #6266

Note: See TracTickets for help on using tickets.