You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Bozo Dragojevic (JIRA)" <ji...@apache.org> on 2015/09/22 19:14:04 UTC

[jira] [Commented] (PROTON-1001) Python tests fail in environments without unittest2

    [ https://issues.apache.org/jira/browse/PROTON-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903012#comment-14903012 ] 

Bozo Dragojevic commented on PROTON-1001:
-----------------------------------------

you can also just pip install unittest2

> Python tests fail in environments without unittest2
> ---------------------------------------------------
>
>                 Key: PROTON-1001
>                 URL: https://issues.apache.org/jira/browse/PROTON-1001
>             Project: Qpid Proton
>          Issue Type: Bug
>            Reporter: Justin Ross
>            Assignee: Ken Giusti
>
> Provide compatibility with python 2.6:
> import unittest
> try:
>   from unittest import SkipTest
> except:
>    try:
>        from unittest2 import SkipTest
>    except:
>        class SkipTest(Exception):
>            pass



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)