Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

hemamaps / celery   python

Repository URL to install this package:

Version: 3.1.23 

/ tests / security / case.py

from __future__ import absolute_import

from celery.tests.case import AppCase, SkipTest

import sys


class SecurityCase(AppCase):

    def setup(self):
        if sys.version_info[0] == 3:
            raise SkipTest('PyOpenSSL does not work on Python 3')
        try:
            from OpenSSL import crypto  # noqa
        except ImportError:
            raise SkipTest('OpenSSL.crypto not installed')