diff --git a/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_context.py b/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_context.py index 6bd4da58fb3d2..1fd029361981b 100644 --- a/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_context.py +++ b/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_context.py @@ -58,8 +58,8 @@ def __init__(self): @op def test_op_context_instance_check(context: OpExecutionContext): step_context = context._step_execution_context # noqa: SLF001 - asset_context = AssetExecutionContext(step_execution_context=step_context) op_context = OpExecutionContext(step_execution_context=step_context) + asset_context = AssetExecutionContext(op_execution_context=op_context) with pytest.raises(DeprecationWarning): isinstance(asset_context, OpExecutionContext) assert not isinstance(op_context, AssetExecutionContext)