Skip to content

Commit 2ab641a

Browse files
committed
Revert "test: fix deprecated datetime serialisation (follow-up to #2314)"
This reverts commit 51bab39.
1 parent 58551ad commit 2ab641a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/async/test_assertions.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
import asyncio
16-
import datetime
1716
import re
17+
from datetime import datetime
1818

1919
import pytest
2020

@@ -183,11 +183,7 @@ async def test_assertions_locator_to_have_js_property(
183183
)
184184
await expect(page.locator("div")).to_have_js_property(
185185
"foo",
186-
{
187-
"a": 1,
188-
"b": "string",
189-
"c": datetime.datetime.fromtimestamp(1627503992000 / 1000),
190-
},
186+
{"a": 1, "b": "string", "c": datetime.utcfromtimestamp(1627503992000 / 1000)},
191187
)
192188

193189

0 commit comments

Comments
 (0)