sharpy icon indicating copy to clipboard operation
sharpy copied to clipboard

unittest2 or unittest

Open jaivikram opened this issue 14 years ago • 0 comments

https://github.com/Saaspire/sharpy/blob/master/tests/product_tests.py#L5 from unittest.case import SkipTest

I think the docs should say that the alias unittest actually refers to unittest2 Depending on which testing library is installed on a users system - unittest or unittest2 the line should change

if the user has just unittest2 and the alias unitest refers to that, its okay

but if the user has unittest and unittest2 then the line should change to

from unittest2.case import SkipTest

what do you think sean?

jaivikram avatar Dec 17 '11 07:12 jaivikram