Fix test_version without cssutils
This commit is contained in:
parent
2f8686ec70
commit
67b4502fdb
@ -648,6 +648,8 @@ class TestModuleVersions:
|
||||
name: The name of the module to check.
|
||||
has_version: Whether a __version__ attribute is expected.
|
||||
"""
|
||||
if name == 'cssutils':
|
||||
pytest.importorskip(name)
|
||||
module = importlib.import_module(name)
|
||||
assert hasattr(module, '__version__') == has_version
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user