Skip to content

Commit

Permalink
Revert "test: fix deprecated datetime serialisation (follow-up to #2314
Browse files Browse the repository at this point in the history
…)"

This reverts commit 51bab39.
  • Loading branch information
mxschmitt committed Mar 5, 2024
1 parent 58551ad commit 2ab641a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/async/test_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

import asyncio
import datetime
import re
from datetime import datetime

import pytest

Expand Down Expand Up @@ -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)},
)


Expand Down

0 comments on commit 2ab641a

Please sign in to comment.