Skip to content

Commit 5a9756f

Browse files
committed
Fix test
1 parent 4d65ada commit 5a9756f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/worker/workflow_sandbox/test_runner.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,7 @@ async def run(self) -> None:
416416
# Using a datetime in binary-compiled Pydantic skips our issubclass when
417417
# building their validators causing it to use date instead
418418
# TODO(cretz): https://github.com/temporalio/sdk-python/issues/207
419-
if pydantic.compiled:
420-
assert isinstance(PydanticMessage(content=workflow.now()).content, date)
421-
else:
422-
assert isinstance(PydanticMessage(content=workflow.now()).content, datetime)
419+
assert isinstance(PydanticMessage(content=workflow.now()).content, datetime)
423420

424421

425422
async def test_workflow_sandbox_known_issues(client: Client):

0 commit comments

Comments
 (0)