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 <rep...@bugs.python.org> <http://bugs.python.org/issue26325> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com