Gitlab Community Edition Instance

Commit 8456ba9b authored by mhellka's avatar mhellka
Browse files

Merge branch 'py35compat' into 'master'

py3.5 compatibility

See merge request !7
parents 4808ed7b befdc40a
......@@ -40,11 +40,10 @@ def _autodiscover_commands():
"""
import pkgutil
import pycdstar3.cli.commands
for mod in pkgutil.iter_modules(pycdstar3.cli.commands.__path__):
if mod.ispkg:
for _, name, ispkg in pkgutil.iter_modules(pycdstar3.cli.commands.__path__):
if ispkg:
continue
name = mod.name
ipath = pycdstar3.cli.commands.__name__ + "." + mod.name
ipath = pycdstar3.cli.commands.__name__ + "." + name
yield name, importlib.import_module(ipath)
......
......@@ -124,7 +124,7 @@ def test_tx2(mockserver):
with pytest.raises(RuntimeError):
with mockserver:
pass
pass # pragma: no cover
def test_error(mockserver):
......
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