potiuk commented on code in PR #27264:
URL: https://github.com/apache/airflow/pull/27264#discussion_r1199598291


##########
tests/models/test_param.py:
##########
@@ -130,8 +131,12 @@ def test_string_date_format(self):
         with pytest.raises(ParamValidationError, match=error_pattern):
             Param("01/01/2021", type="string", format="date").resolve()
 
-        with pytest.raises(ParamValidationError, match=error_pattern):
+        if PY311:
+            # in Python 3.11 `fromisoformat` will not raise an error for this 
one

Review Comment:
   isoformat can parse more iso-compliant formats 
https://docs.python.org/3/whatsnew/3.11.html#datetime



-- 
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]

Reply via email to