GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Improve the documentation for `ignore_warnings` · Issue #103109 · python/cpython Closed Labels testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement DescriptionDocumentationRecently, I found that using # use `with` statement def test_suppress_warning(): with warnings.catch_warnings(): warnings.simplefilter("ignore", category=SyntaxWarning) # do something # use decorator @warning_helper.ignore_warnings(category=SyntaxWarning) def test_suppress_warning(): # do something What I want to improve:
But in fact this can become a more general warning suppression decorator, not just deprecation warnings, we can improve this comment.
Linked PRsActivity
MetadataMetadataAssigneesLabelstestsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |