Commit bc9cb342 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[test.utils] Handle ModuleNotFoundError when bob.db.atnt is not available

parent 52934fcb
Pipeline #46247 passed with stage
in 5 minutes and 37 seconds
......@@ -9,7 +9,11 @@ import sys
import functools
from nose.plugins.skip import SkipTest
import importlib
from bob.db.atnt.models import DEFAULT_DATADIR as ATNT_DEFAULT_DIR
try:
from bob.db.atnt.models import DEFAULT_DATADIR as ATNT_DEFAULT_DIR
except ModuleNotFoundError:
ATNT_DEFAULT_DIR = None
# based on: http://stackoverflow.com/questions/6796492/temporarily-redirect-stdout-stderr
class Quiet(object):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment