[TIP] What version of ‘unittest2’ is needed for Python 3.4 features?
robertc at robertcollins.net
Tue Jul 26 19:10:07 PDT 2016
On 27 July 2016 at 13:31, Ben Finney <ben+python at benfinney.id.au> wrote:
> Howdy all,
> What version of the unittest2 library do I need for the new features in
> Python 3.4's unittest?
> The unittest2 library  is a very useful back-port of Python 3's
> unittest features, to work on older Python versions. By importing that
> third-party library, you can use the features described for Python 3's
> unittest in your Python 2 code.
> There are some handy new features  in Python 3.4's unittest library.
> (In particular I'm trying to use the “subtests” feature in a way that
> will just keep working when we migrate to Python 3.)
> To use those features in code written for Python 2 and Python 3, what
> version of unittest2 do I need to install?
I'm not sure - I suggest looking through the VCS history to see when
that was backported to it.
More information about the testing-in-python