Fixtures

Latest version: v4.2.4.post1

Safety actively analyzes 714860 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 7

1.4

~~~

* ``fixtures`` now has CI testing via Travis, no more manual work.
(Robert Collins)

* ``mock`` is used in preference to ``unittest.mock`` now, as the rolling
backport has significant bugfixes over older but still supported CPython
stdlib versions. (Robert Collins)

* ``fixtures.FakeLogger`` now detects incorrectly formatted log messages.
(John Villalovos, 1503049)

1.3.1

~~~~~

* ``Fixture.setUp`` now uses a bare except: and will thus catch BaseException.
Any non-Exception-subclass errors are raised verbatim after calling
``cleanUp``, to avoid inappropriate masking in callers. (Robert Collins)

1.3.0

~~~~~

* Add MockPatch, MockPatchMultiple, MockPatchObject - adapters to mock.
(Julien Danjou, Robert Collins)

* Fixture.setUp should no longer be overridden in subclasses. Instead
override _setUp. This permits the Fixture base class to detect failures
during _setUp and trigger any registered cleanups, attach any details
to the failure exception and propagate that to callers. Overriding of
setUp is still supported: this adds a new interface for simpler
implementation of the contract of a fixture.
(Robert Collins, 1456361, 1456353)

1.2.0

~~~~~

* Add warnings module fixture for capturing warnings. (Joshua Harlow)

1.1.0

~~~~~

CHANGES
-------

* FakeLogger now supports a custom formatter. (Sean Dague)

* 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)

* ``tox.ini`` added, for folk that use tox. (Sean Dague)

1.0.0

~~~~~

CHANGES
-------

* Fix incorrect entry_point. (Gabi Davar)

Page 3 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.