Skip to content

Latest commit

 

History

History
160 lines (129 loc) · 5.82 KB

CHANGES.rst

File metadata and controls

160 lines (129 loc) · 5.82 KB
.. currentmodule:: attest

Changelog

0.6

Release date:in development
Tested on:CPython 2.5 - 2.7 and 3.1 - 3.2, PyPy 1.5

0.5.2

Release date:2011-04-19
Tested on:CPython 2.5 - 2.7 and 3.1, PyPy 1.4.1

Bugs fixed:

  • 0.5 requires progressbar 2.3; version requirement for dependency added.
  • The setuptools-git plugin wasn't working well with Attest as a test dependency with setup.py test, so it has been dropped in favour of a :file:`MANIFEST.in` file.
  • Calls and attributes are now evaluated by the assert hook. The previous behaviour was intentional, but turned out to be less helpful.
  • The assert hook now injects explicit calls to :func:`globals` and :func:`locals` rather than relying on stack frame inspection. This fixes a bug on CPython 2.5 where :func:`inspect.stack` tried to read lines from the source file, based on the line numbers from the generated source, which could end fatally when the line number exceeded the number of lines in the source file.
  • Assertions are now correctly counted when tests are run more than once in the same process.

0.5.1

Release date:2011-03-25
Tested on:CPython 2.5 - 2.7 and 3.1, PyPy 1.4.1

Bugs fixed:

  • The assert hook failed to evaluate list comprehensions and similar constructs because the loop variable was treated as a variable to be looked up in the symbol table.
  • Variables referencing objects implementing __name__ not returning a string caused an exception to exit early, if used with the assert hook in a failing condition.

0.5

Code name:Ghost Writer
Release date:2011-03-08
Tested on:CPython 2.5 - 2.7 and 3.1, PyPy 1.4.1

0.4

Release date:2011-01-08
Tested on:CPython 2.5 - 2.7 and 3.1, PyPy 1.4.1

0.3

Release date:2010-11-27
Tested on:CPython 2.6

0.2

Release date:2010-11-26
Tested on:CPython 2.6
  • Functional tests can now have multiple contexts.
  • Tests can be registered by dotted name (import path as string).
  • Collections have a command-line interface via :meth:`Tests.main`.

0.1

Release date:2010-11-25
Tested on:CPython 2.6