[New-bugs-announce] [issue26325] Add helper to check that no ResourceWarning is emitted

Serhiy Storchaka report at bugs.python.org
Wed Feb 10 05:14:02 EST 2016


New submission from Serhiy Storchaka:

Victor proposed in issue25994 to use special context manager to check that no ResourceWarning is emitted. I think that this helper can be useful in other tests. It saves 3 lines for every use. Proposed patch adds it in test.support.

----------
components: Tests
files: test_support_check_no_resource_warning.patch
keywords: patch
messages: 260000
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Add helper to check that no ResourceWarning is emitted
type: enhancement
versions: Python 2.7, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41883/test_support_check_no_resource_warning.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26325>
_______________________________________


More information about the New-bugs-announce mailing list