casassg commented on a change in pull request #10349:
URL: https://github.com/apache/airflow/pull/10349#discussion_r478774900
##########
File path: tests/operators/test_python.py
##########
@@ -377,81 +376,6 @@ def identity2(x: int, y: int) -> Tuple[int, int]:
assert ti.xcom_pull(key="return_value_0") is None
assert ti.xcom_pull(key="return_value_1") is None
- @conf_vars({("core", "enable_xcom_pickling"): "True"})
- def test_multiple_outputs_set(self):
- @task_decorator
- def identity(x: int, y: int) -> Set[int]:
- return {x, y}
-
- with self.dag:
- res = identity(15, 16)
-
- dr = self.dag.create_dagrun(
- run_id=DagRunType.MANUAL.value,
- start_date=timezone.utcnow(),
- execution_date=DEFAULT_DATE,
- state=State.RUNNING
- )
-
- res.operator.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE) #
pylint: disable=maybe-no-member
-
- ti = dr.get_task_instances()[0]
- expected = {15, 16}
-
- assert res.operator.multiple_outputs # pylint: disable=maybe-no-member
- assert ti.xcom_pull() == expected # pylint: disable=maybe-no-member
- first = ti.xcom_pull(key="return_value_0")
- assert first in expected
-
- assert (expected - {first}) == {ti.xcom_pull(key="return_value_1")}
-
Review comment:
Can we add back one of these tests to make sure it's not inferred?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]