Testfixtures

Latest version: v8.3.0

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

Scan your dependencies

Page 16 of 23

4.2.0

----------------------

- Add :class:`~testfixtures.popen.MockPopen`, a mock helpful when testing
code that uses :class:`subprocess.Popen`.

- :class:`ShouldRaise` now subclasses :class:`object`, so that subclasses of it
may use ``super()``.

- Drop official support for Python 3.2.

Thanks to BATS Global Markets for donating the code for
:class:`~testfixtures.popen.MockPopen`.

4.1.2

-----------------------

- Clarify documentation for ``name`` parameter to :class:`LogCapture`.

- :class:`ShouldRaise` now shows different output when two exceptions have
the same representation but still differ.

- Fix bug that could result in a :class:`dict` comparing equal to a
:class:`list`.

Thanks to Daniel Fortunov for the documentation clarification.

4.1.1

-----------------------

- Fix bug that prevented logger propagation to be controlled by the
:class:`log_capture` decorator.

Thanks to John Kristensen for the fix.

4.1.0

-----------------------

- Fix :func:`compare` bug when :class:`dict` instances with
:class:`tuple` keys were not equal.

- Allow logger propagation to be controlled by :class:`LogCapture`.

- Enabled disabled loggers if a :class:`LogCapture` is attached to them.

Thanks to Daniel Fortunov for the :func:`compare` fix.

4.0.2

-------------------------

- Fix "maximum recursion depth exceeded" when comparing a string with
bytes that did not contain the same character.

4.0.1

---------------------

- Fix bugs when string compared equal and options to :func:`compare`
were used.

- Fix bug when strictly comparing two nested structures containing
identical objects.

Page 16 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.