Python 3 monkeypatched staticmethods cleanup improperly

Bug #1560630 reported by Andrew Laski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Fixtures
Fix Released
Undecided
Andrew Laski

Bug Description

The same issue fixed for Python 2 with https://github.com/testing-cabal/fixtures/commit/a66dc6828dcaab4751aaa97a7ab5590b8e0be343 exists for Python 3.

Commit message of Python 2 fix explaining the issue:

"As noticed by Antoni S. Puimedon in http://gerrit.ovirt.org/23378/, in Python
2, setattr(Class, name, func) automatically converts a function into an
instancemethod. To keep type(Class.func) as function, staticmethod(func) must
be applied explicitly."

Andrew Laski (alaski)
Changed in python-fixtures:
assignee: nobody → Andrew Laski (alaski)
Revision history for this message
Andrew Laski (alaski) wrote :
Changed in python-fixtures:
status: New → In Progress
Andrew Laski (alaski)
Changed in python-fixtures:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.