skip m2crypto tests on Python 3
This commit is contained in:
parent
812a286f12
commit
1205b8c50e
2 changed files with 13 additions and 1 deletions
|
@ -16,7 +16,7 @@ before_install:
|
|||
script:
|
||||
- pep8 .
|
||||
- pyflakes .
|
||||
- python tests/nose_plugin.py
|
||||
- python tests/nose_plugin.py -v
|
||||
- python tests/test.py -c tests/aes.json
|
||||
- python tests/test.py -c tests/aes-ctr.json
|
||||
- python tests/test.py -c tests/aes-cfb1.json
|
||||
|
|
|
@ -80,18 +80,30 @@ def run_method(method):
|
|||
|
||||
|
||||
def test_aes_128_cfb():
|
||||
if bytes != str:
|
||||
from nose.plugins.skip import SkipTest
|
||||
raise SkipTest
|
||||
run_method(b'aes-128-cfb')
|
||||
|
||||
|
||||
def test_aes_256_cfb():
|
||||
if bytes != str:
|
||||
from nose.plugins.skip import SkipTest
|
||||
raise SkipTest
|
||||
run_method(b'aes-256-cfb')
|
||||
|
||||
|
||||
def test_bf_cfb():
|
||||
if bytes != str:
|
||||
from nose.plugins.skip import SkipTest
|
||||
raise SkipTest
|
||||
run_method(b'bf-cfb')
|
||||
|
||||
|
||||
def test_rc4():
|
||||
if bytes != str:
|
||||
from nose.plugins.skip import SkipTest
|
||||
raise SkipTest
|
||||
run_method(b'rc4')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue