lp:~danken/python-fixtures/staticmethod
Created by
Dan Kenigsberg
and last modified
- Get this branch:
- bzr branch lp:~danken/python-fixtures/staticmethod
Only
Dan Kenigsberg
can upload to this branch. If you are
Dan Kenigsberg
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- python-fixtures committers: Pending requested
-
Diff: 55 lines (+23/-0)2 files modifiedlib/fixtures/_fixtures/monkeypatch.py (+8/-0)
lib/fixtures/tests/_fixtures/test_monkeypatch.py (+15/-0)
Branch information
Recent revisions
- 76. By Dan Kenigsberg
-
MonkeyPatch staticmethod
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. - 71. By Robert Collins
-
* Documentation hopefully covers ``TestWithFixtu
res`` a little better.
(Robert Collins, #1102688) - 69. By Robert Collins
-
* ``setup.py`` now lists the ``testtools`` dependency which was missing.
(Robert Collins, #1103823) - 68. By Robert Collins
-
* ``FakePopen`` now accepts all the parameters available in Python 2.7.
(Robert Collins)* ``FakePopen`` now only passes parameters to the get_info routine if the
caller supplied them. (Robert Collins)
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~python-fixtures/python-fixtures/trunk