pytest -v -ra -W error -W ignore::ResourceWarning:orangecanvas.utils.localization -W ignore::DeprecationWarning:orangecanvas.utils.localization -W ignore::DeprecationWarning:orangecanvas.utils.localization.si -W ignore::DeprecationWarning:matplotlib._fontconfig_pattern -W ignore::DeprecationWarning:matplotlib._mathtext -k test_mixed_tutorial_without_qt
________________________ test_mixed_tutorial_without_qt ________________________
qtapp = <PyQt5.QtWidgets.QApplication object at 0x728540bc5700>
def test_mixed_tutorial_without_qt(qtapp):
from orangecontrib.ewokstest import tutorials
if ORANGE_VERSION == ORANGE_VERSION.latest_orange:
workflow = "mixed_tutorial.ows"
elif ORANGE_VERSION == ORANGE_VERSION.oasys_fork:
workflow = "mixed_tutorial_oasys.ows"
else:
pytest.skip("Requires the Orange3 or Oasys1 python script widget")
filename = resource_files(tutorials).joinpath(workflow)
> assert_mixed_tutorial_without_qt(filename)
src/ewoksorange/tests/test_tutorials.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ewoksorange/tests/test_tutorials.py:148: in assert_mixed_tutorial_without_qt
tasks = execute_graph(graph, output_tasks=True)
/usr/local/lib/python3.9/site-packages/ewokscore/events/contexts.py:26: in wrapper
return method(*args, execinfo=execinfo, **kw)
/usr/local/lib/python3.9/site-packages/ewokscore/bindings.py:92: in execute_graph
return sequential.execute_graph(
/usr/local/lib/python3.9/site-packages/ewokscore/graph/execute/sequential.py:127: in execute_graph
task = instantiate_task_static(
/usr/local/lib/python3.9/site-packages/ewokscore/graph/execute/sequential.py:74: in instantiate_task_static
target_task = instantiate_task(
/usr/local/lib/python3.9/site-packages/ewokscore/graph/execute/sequential.py:25: in instantiate_task
return _instantiate_task(node_id, nodeattrs, **kw)
/usr/local/lib/python3.9/site-packages/ewokscore/inittask.py:184: in instantiate_task
return task_class(**task_kwargs)
/usr/local/lib/python3.9/site-packages/ewokscore/task.py:105: in __init__
inputs = self._check_inputs(inputs)
/usr/local/lib/python3.9/site-packages/ewokscore/task.py:140: in _check_inputs
self._warn_unexpected_inputs(unexpected_names)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'WrapperTask' object has no attribute '_UniversalHashable__pre_uhash'") raised in repr()] WrapperTask object at 0x72848d121e50>
unexpected_names = {'__version__', 'controlAreaVisible', 'currentScriptIndex', 'savedWidgetGeometry', 'scriptLibrary', 'scriptText', ...}
def _warn_unexpected_inputs(self, unexpected_names: Set[str]) -> None:
> warnings.warn(
f"Unexpected inputs for task {type(self).__name__}: "
f"{sorted(unexpected_names)}",
TaskInputWarning,
stacklevel=3,
)
E ewoksutils.exceptions.TaskInputWarning: Unexpected inputs for task WrapperTask: ['__version__', 'controlAreaVisible', 'currentScriptIndex', 'savedWidgetGeometry', 'scriptLibrary', 'scriptText', 'splitterState', 'vimModeEnabled']
/usr/local/lib/python3.9/site-packages/ewokscore/task.py:723: TaskInputWarning