Decorated function names are not preserved
Bug #753003 reported by
kumar303
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CaptureMock |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The @capturemock decorator returns a wrapped function without preserving the original name of the function. This interferes with test runners that run functions by discovery (e.g. Nose, py.test, unittest2).
The fix for this is to simply copy original_
Changed in capturemock: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
CaptureMock has its own bugtracker...
Many thanks for the patch, will try to integrate it in the next couple of days.