Skip to content

Commit

Permalink
Fix errors in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jun 2, 2021
1 parent f0d4e78 commit b13cb42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def test_config_check():
del sys.modules["moviepy.config"]


@pytest.mark.skipif(sys.version_info < (3, 8), reason="Requires Python 3.8 or greater")
@pytest.mark.parametrize(
"decorator_name",
("convert_parameter_to_seconds", "convert_path_to_string"),
Expand All @@ -302,7 +303,11 @@ def test_decorators_argument_converters_consistency(decorator_name):
for modname, ispkg in get_moviepy_modules():
if ispkg:
continue
module = importlib.import_module(modname)

try:
module = importlib.import_module(modname)
except ImportError:
continue

functions_with_decorator = get_functions_with_decorator_defined(
module,
Expand Down

0 comments on commit b13cb42

Please sign in to comment.