From 2ab641af55113ad36c318deff459a7a9ac4d88ae Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 5 Mar 2024 20:52:24 +0100 Subject: [PATCH] Revert "test: fix deprecated datetime serialisation (follow-up to #2314)" This reverts commit 51bab3928c2ef74cf297307c2382bbf89d69c689. --- tests/async/test_assertions.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/async/test_assertions.py b/tests/async/test_assertions.py index b8936f4bf..774d60de5 100644 --- a/tests/async/test_assertions.py +++ b/tests/async/test_assertions.py @@ -13,8 +13,8 @@ # limitations under the License. import asyncio -import datetime import re +from datetime import datetime import pytest @@ -183,11 +183,7 @@ async def test_assertions_locator_to_have_js_property( ) await expect(page.locator("div")).to_have_js_property( "foo", - { - "a": 1, - "b": "string", - "c": datetime.datetime.fromtimestamp(1627503992000 / 1000), - }, + {"a": 1, "b": "string", "c": datetime.utcfromtimestamp(1627503992000 / 1000)}, )