1. Carlos Ble
  2. pyDoubles
  3. Pull requests

Pull requests

#8 Declined
Repository
Deleted repository
Branch
default (47369bec3388)
Repository
pyDoubles
Branch
default

Change for support python 2.5

Author
  1. Eduardo Ferro
Reviewers
Description

At python 2.6 version, inspect.getargspec changed from return a tuple to a namedtuple (http://docs.python.org/library/inspect.html#inspect.getargspec)

So in some of our tests (using python 2.5) we get an exception when testing the arguments:

File "pyDoubles/framework.py", line 153, in _check_api_match self.introspector.original_method_signature(original_method) File "pyDoubles/core.py", line 114, in original_method_signature args_plus_kwargs_spec_len = len(arg_spec.args) - self_arg AttributeError: 'tuple' object has no attribute 'args'

Comments (2)

  1. Eduardo Ferro author

    Shame on me!!! This change broke some of the pydoubles test, so I'll fixes these issues and resend the pull request... Sorry for the inconvenience