Verified Commit e8e32294 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix tests

parent 8f5f7ff6
Pipeline #37612 passed with stages
in 14 minutes and 52 seconds
......@@ -87,7 +87,7 @@ def test_import(module):
try:
m = __import__(module, {}, {}, "*")
assert m
except ImportError as e:
except (ImportError, ModuleNotFoundError, NotImplementedError) as e:
if _allow_xfail(module):
pytest.xfail(str(e))
else:
......@@ -100,7 +100,7 @@ def test_module_empty_docstrings(module):
m = __import__(module, {}, {}, "*")
if m.__doc__ is not None and not m.__doc__.strip():
pytest.xfail("Module-level docstring must not be empty")
except ImportError as e:
except (ImportError, ModuleNotFoundError, NotImplementedError) as e:
if _allow_xfail(module):
pytest.xfail(str(e))
else:
......
Supports Markdown
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