Use ciso8601 library to parse datetime faster (#32128)

This commit is contained in:
Ruslan Sayfutdinov 2020-02-24 16:33:10 +00:00 committed by GitHub
parent d996a4a9a9
commit 15b4975681
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 1 deletions

View file

@ -464,7 +464,7 @@ def test_time():
def test_datetime():
"""Test date time validation."""
schema = vol.Schema(cv.datetime)
for value in [date.today(), "Wrong DateTime", "2016-11-23"]:
for value in [date.today(), "Wrong DateTime"]:
with pytest.raises(vol.MultipleInvalid):
schema(value)