Function with *args type param causes invalid test code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pythoscope |
Fix Released
|
High
|
Michal Kwiatkowski |
Bug Description
Reported by ssteinerX on pythoscope google group: http://
One of my functions has the signature:
def build_url(*params):
pass
When I called the function with a list, like so, in a points-of-
entry file, the following test code was generated:
def test_build_
'is', 'a')))
Unfortunately, using a keyword parameter like that causes this:
ERROR: test_build_
(wssw_urlutils.
-------
Traceback (most recent call last):
File "/Users/
test_build_
self.
' \r\nis \r\n', '\t\r\n a\r\n\t', ' test '),)))
TypeError: build_url() got an unexpected keyword argument 'params'
Changed in pythoscope: | |
assignee: | nobody → Michal Kwiatkowski (ruby) |
Fixed in trunk r286.