Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 608594

Summary: sys-apps/portage: Python 3.6: ResourceWarning: subprocess 1234 is still running
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 611328    

Description Zac Medico gentoo-dev 2017-02-08 09:01:31 UTC
With Python 3.6, the PopenProcess class triggers warnings like this:

    ResourceWarning: subprocess 1234 is still running
Comment 1 Zac Medico gentoo-dev 2017-02-08 09:43:56 UTC
The PopenProcess class is fixed in the master branch:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=855c8761f85323bbe570ae61e87c57dc8ea5ea0e

We've still got some similar ResourceWarning messages triggered by SimpleRepomanTestCase, but that's a separate issue (and debugging it requires lxml built for Python 3.6).
Comment 2 Zac Medico gentoo-dev 2017-02-08 18:17:51 UTC
There's a fix for repoman's Status.check method here:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=4375ccd4188467dbd15308baf23331668afe4691
Comment 3 Zac Medico gentoo-dev 2017-05-20 18:15:51 UTC
Fixed in portage-2.3.5.