[New-bugs-announce] [issue24675] Avoid DeprecationWarning in test_os

Martin Panter report at bugs.python.org
Mon Jul 20 16:16:53 CEST 2015

New submission from Martin Panter:

This patch is to avoid the warning introduced with the changes in Issue 15745, originally described at <https://bugs.python.org/issue15745#msg245455>. The code has a “with” statement to hide the warning from os.stat_float_times(), but the warning triggers anyway because the TestCase.addCleanup() callback is triggered after the “with” statement has exited.

components: Tests
files: stat-times-deprecated.patch
keywords: patch
messages: 246995
nosy: haypo, vadmium
priority: normal
severity: normal
stage: patch review
status: open
title: Avoid DeprecationWarning in test_os
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39962/stat-times-deprecated.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list