lp:~cbrandily/python-fixtures/cleanup-context
- Get this branch:
- bzr branch lp:~cbrandily/python-fixtures/cleanup-context
Branch merges
- Robert Collins: Disapprove
-
Diff: 80 lines (+54/-5)2 files modifiedfixtures/fixture.py (+6/-5)
fixtures/tests/test_fixture.py (+48/-0)
Related bugs
Related blueprints
Branch information
Recent revisions
- 96. By Cedric Brandily
-
Ensure cleanups are called even if setUp fails with fixture context
This change ensures that a fixture cleanups will be called even if
its setUp fails when used as a context.Example:
with MyFixture() as fixture1:
passfixture1.cleanUp will be called even if fixture1.setUp (called in
fixture1.__enter__) fails. - 94. By Joshua Harlow
-
Add a warnings module capture fixure
Capturing the warnings module output (which is typically used
for deprecating code or functions or modules) is quite useful and
is a frequent operation that can be required to perform. So provide
a fixture that is similar (but not the same) as the warnings
``catch_warnings`` context manager that can be used to gather all
warnings emitted and allows people to later analyze them to ensure
they are as they expect. - 90. By Sean Dague
-
add tox.ini file
Provide tox configuration to make it easy to run tests locally against
different python environments without have to install dependencies
into the system. The default env is left at py27 only for
compatibility, however tox -e py33 and tox -e py34 will work fine with
this in place. - 89. By Robert Collins
-
Fixed test performance on Python 3.5.
PEP 475 led to ``time.sleep()`` not being interrupted when a received signal
handler eats the signal (rather than raising an exception). (Robert Collins) - 87. By Sean Dague
-
allow the specification of a custom log formatter
When working on OpenStack in tree functional test things like the
context information is extremely useful to have access to. This relies
on using custom log formatter, which currently can't be done in
fixtures.The creates an additional optional parameter for FakeLogger to specify
this.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:python-fixtures