This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Avoid DeprecationWarning in test_os
Type: Stage: patch review
Components: Tests Versions: Python 3.6, Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: martin.panter, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2015-07-20 14:16 by martin.panter, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
stat-times-deprecated.patch martin.panter, 2015-07-20 14:16 review
Messages (3)
msg246995 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-07-20 14:16
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.
msg246997 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-07-20 15:13
New changeset bc67e0030d42 by Victor Stinner in branch '3.4':
Issue #24675: Avoid DeprecationWarning in test_os
https://hg.python.org/cpython/rev/bc67e0030d42
msg246998 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2015-07-20 15:14
Thanks Martin. I applied your patch, but I replaced tearDown() with a cleanup function.
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 68863
2015-07-20 15:14:19vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg246998
2015-07-20 15:13:47python-devsetnosy: + python-dev
messages: + msg246997
2015-07-20 14:16:53martin.pantercreate