Bug 545538 - get/set_affinty should raise OSError exceptions
Summary: get/set_affinty should raise OSError exceptions
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-schedutils
Version: 12
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Arnaldo Carvalho de Melo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-08 20:14 UTC by Guy Streeter
Modified: 2016-02-10 01:33 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-09 15:45:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Guy Streeter 2009-12-08 20:14:18 UTC
The get_affinity and set_affinity routines currently raise SystemError exceptions for OS errors like "No such process" or "Operation not permitted." The SystemError exception is defined as an indication of a python interpreter bug. The right exception type for these is OSError.

Comment 1 Arnaldo Carvalho de Melo 2010-02-09 15:45:12 UTC
Fixe in 4e05f75 at http://git.kernel.org/?p=linux/kernel/git/acme/python-schedutils.git


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