diff --git a/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py b/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py index 136c20c626f41..b97e6f69938f3 100644 --- a/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py +++ b/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py @@ -1508,7 +1508,7 @@ async def get_results(): def test_bound_state_with_error_assets(): @asset def throws_error(context): - assert context.alias == "throws_error" + assert context.asset_key.to_user_string() == "throws_error" raise Failure("something bad happened!") ctx = build_asset_context()