Bug 1073979 - Python method Comps().xml_f() doesn't check arguments correctly
Summary: Python method Comps().xml_f() doesn't check arguments correctly
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libcomps
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jindrich Luza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-07 15:20 UTC by Pavol Babinčák
Modified: 2014-10-07 09:03 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-07 09:03:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Minimal reproducer (130 bytes, text/x-python)
2014-03-07 15:20 UTC, Pavol Babinčák
no flags Details

Description Pavol Babinčák 2014-03-07 15:20:55 UTC
Created attachment 871928 [details]
Minimal reproducer

Description of problem:
Accidentaly I called xml_f() method on Comps() python object with wrong argument. Instead of immediate TypeError exception I receive TypeError when I try to use iteration on different object.

Version-Release number of selected component (if applicable):
libcomps-0.1.6-3.fc21.x86_64
python-libcomps-0.1.6-3.fc21.x86_64
python-2.7.5-11.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run attached p.py:
   python p.py

Actual results:
Traceback (most recent call last):
  File "p.py", line 7, in <module>
    print [b for b in x]
TypeError: 'foo' is an invalid keyword argument for this function


Expected results:
TypeError on line with xml_f() call.

Additional info:


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