skip m2crypto tests on pypy
This commit is contained in:
parent
1205b8c50e
commit
82ddafafa5
1 changed files with 15 additions and 10 deletions
|
@ -79,31 +79,36 @@ def run_method(method):
|
||||||
util.run_cipher(cipher, decipher)
|
util.run_cipher(cipher, decipher)
|
||||||
|
|
||||||
|
|
||||||
def test_aes_128_cfb():
|
def check_env():
|
||||||
|
# skip this test on pypy and Python 3
|
||||||
|
try:
|
||||||
|
import __pypy__
|
||||||
|
from nose.plugins.skip import SkipTest
|
||||||
|
raise SkipTest
|
||||||
|
except ImportError:
|
||||||
|
__pypy__ = None
|
||||||
if bytes != str:
|
if bytes != str:
|
||||||
from nose.plugins.skip import SkipTest
|
from nose.plugins.skip import SkipTest
|
||||||
raise SkipTest
|
raise SkipTest
|
||||||
|
|
||||||
|
|
||||||
|
def test_aes_128_cfb():
|
||||||
|
check_env()
|
||||||
run_method(b'aes-128-cfb')
|
run_method(b'aes-128-cfb')
|
||||||
|
|
||||||
|
|
||||||
def test_aes_256_cfb():
|
def test_aes_256_cfb():
|
||||||
if bytes != str:
|
check_env()
|
||||||
from nose.plugins.skip import SkipTest
|
|
||||||
raise SkipTest
|
|
||||||
run_method(b'aes-256-cfb')
|
run_method(b'aes-256-cfb')
|
||||||
|
|
||||||
|
|
||||||
def test_bf_cfb():
|
def test_bf_cfb():
|
||||||
if bytes != str:
|
check_env()
|
||||||
from nose.plugins.skip import SkipTest
|
|
||||||
raise SkipTest
|
|
||||||
run_method(b'bf-cfb')
|
run_method(b'bf-cfb')
|
||||||
|
|
||||||
|
|
||||||
def test_rc4():
|
def test_rc4():
|
||||||
if bytes != str:
|
check_env()
|
||||||
from nose.plugins.skip import SkipTest
|
|
||||||
raise SkipTest
|
|
||||||
run_method(b'rc4')
|
run_method(b'rc4')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue