Skip to content

Commit 8c5127c

Browse files
committed
test: disable the SEDebugMux test if crcmod is not found
1 parent 3e11fab commit 8c5127c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/test_pycrate.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@
3434
import unittest
3535
import time
3636

37+
try:
38+
# required for SEDebugMux module
39+
import crcmod
40+
_with_crcmod = True
41+
except ImportError:
42+
_with_crcmod = False
43+
3744
from test.test_core import *
3845
from test.test_media import *
3946
from test.test_ether import *
@@ -205,10 +212,11 @@ def test_gmr(self):
205212
print('[<>] testing GMR-1 RR in pycrate_gmr1 and pycrate_gmr1_csn1')
206213
test_gmr()
207214

208-
# osmo related protocols
215+
# osmo related protocols, needs crcmod
209216
def test_osmo(self):
210217
print('[<>] testing pycrate_osmo')
211-
test_sedebugmux()
218+
if _with_crcmod:
219+
test_sedebugmux()
212220

213221
# crypto protocols
214222
def test_crypto(self):

0 commit comments

Comments
 (0)