Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to implement unittest.skip from python 3.1 in python 2.6?

do you know of any implementation of unittest.skip of python 3.1 in python 2.6/2.7? http://docs.python.org/dev/library/unittest.html#skipping-tests-and-expected-failures

thanks

like image 543
Akasha Avatar asked Feb 26 '23 15:02

Akasha


1 Answers

Try installing the unittest2 package, "a backport of the new features added to the unittest testing framework" in Python 2.7 and 3.2.

like image 139
Ned Deily Avatar answered Feb 28 '23 07:02

Ned Deily