potiuk commented on code in PR #35160:
URL: https://github.com/apache/airflow/pull/35160#discussion_r1373274323
##########
tests/providers/amazon/aws/hooks/test_batch_waiters.py:
##########
@@ -241,7 +241,7 @@ def describe_jobs_response(job_id: str = "mock-job-id",
status: str = INTERMEDIA
return {"jobs": [{"jobId": job_id, "status": status}]}
- @pytest.mark.parametrize("status", ALL_STATES)
+ @pytest.mark.parametrize("status", sorted(ALL_STATES))
Review Comment:
You cannot use sets in parametrize parameter when runnung pytest-xdist
because they are not hashable (even though Python 3.6 + sets are ordered. This
break pytest-xdist execution. conveting them to sorted list helps - because
sorted list has stable sequence.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]