Bug 476933 - mock uses deprecated popen2 module
Summary: mock uses deprecated popen2 module
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-18 02:33 UTC by Matt Domsch
Modified: 2013-01-10 04:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-05 23:22:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matt Domsch 2008-12-18 02:33:46 UTC
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.
  import popen2


Version-Release number of selected component (if applicable):
mock-0.9.13-2.fc11.noarch

How reproducible:
always

Steps to Reproduce:
1. build something with mock
  
Actual results:
see the warning

Expected results:
no warning

Comment 1 Clark Williams 2008-12-18 15:17:53 UTC
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.

Comment 2 Clark Williams 2009-02-05 23:22:17 UTC
fixed in current release
(0.9.14-1)


Note You need to log in before you can comment on or make changes to this bug.