Red Hat Bugzilla – Bug 476933
mock uses deprecated popen2 module
Last modified: 2013-01-09 23:59:03 EST
Description of problem:
mock in rawhide throws this warning on every invocation due to changes in python 2.6. The code should be converted to use subprocess instead of popen2.
/usr/lib/python2.6/site-packages/mock/util.py:13: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. build something with mock
see the warning
actually, that's just a left-over from a previous incarnation. All process manipulation actually does use the subprocess module.
I'll delete the import of popen2 from util.py.
fixed in current release