[New-bugs-announce] [issue24839] platform._syscmd_ver raises DeprecationWarning

Steve Dower report at bugs.python.org
Mon Aug 10 20:15:43 CEST 2015


New submission from Steve Dower:

platform._syscmd_ver() calls platform.popen() which raises a DeprecationWarning. This causes tests with `@skip(platform.machine() == '...')` decorators to fail.

The fix is to call `os.popen()` - patch attached. (platform.popen() just raises the warning and then calls os.popen(), so should be no risk here.)

Larry - since this causes spurious failures in numpy's test suite, can we get it into 3.5?

----------
files: platform_popen.patch
keywords: patch
messages: 248364
nosy: larry, lemburg, steve.dower
priority: normal
severity: normal
stage: needs patch
status: open
title: platform._syscmd_ver raises DeprecationWarning
type: behavior
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40158/platform_popen.patch

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


More information about the New-bugs-announce mailing list