spulec/freezegun — pull request #72 by pelme (2014-12-31 13:53:52+00:00)
Title: Fixed #51 - Set __wrapped__ on the decorated function

`functools.update_wrapper` and `functools.wraps` sets `__wrapped__` in Python >= 3.2, so this fix only affects Python 2.X in freezegun.

The mock library uses a similar fix:
https://code.google.com/p/mock/source/browse/mock.py?spec=svnd356250e275daa62b2972521885f42fa639341e6&r=e7c5f97dc1b486fbf2e7fb111ec3e6675f9d3418#65

This change allows pytest to correctly figure out the real argument names and then inject fixtures properly:
https://bitbucket.org/hpk42/pytest/src/d91265465608bd3777ab0c882e5d68335d7472dd/_pytest/python.py?at=default#cl-1916