diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml index a10b912fda5ca..cd13f029917ab 100644 --- a/dev/tasks/tasks.yml +++ b/dev/tasks/tasks.yml @@ -1241,7 +1241,7 @@ tasks: params: env: PYTHON: "{{ python_version }}" - PYTEST_ARGS: "-W error -W ignore:Setting custom ClientSession:DeprecationWarning" + PYTEST_ARGS: "-W error -W \"ignore:Setting custom ClientSession:DeprecationWarning\"" image: conda-python {% endfor %}