Skip to content

Use pytest-pretty #886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 9, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Break some stuff
  • Loading branch information
dandavison committed Jun 9, 2025
commit 985ace70f91e05e64af0de4a618d9d0880deffe8
2 changes: 1 addition & 1 deletion tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def fail(hint: Any, value: Any) -> None:
ok(MyTypedDict, {"foo": "bar", "blah": "meh"})

# Non-string dict keys are supported
ok(Dict[int, str], {1: "1"})
ok(Dict[int, str], {1: "2"})
ok(Dict[float, str], {1.0: "1"})
ok(Dict[bool, str], {True: "1"})
ok(Dict[None, str], {None: "1"})
Expand Down
4 changes: 2 additions & 2 deletions tests/worker/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7051,7 +7051,7 @@ async def run(self, scenario) -> None:
if scenario == "workflow.wait_condition":
await workflow.wait_condition(lambda: False, timeout=0.01)
elif scenario == "asyncio.wait_for":
await asyncio.wait_for(asyncio.sleep(1000), timeout=0.01)
await asyncio.wait_for(asyncio.sleep(1000), timeout=0.0)
elif scenario == "asyncio.timeout":
if sys.version_info >= (3, 11):
async with asyncio.timeout(0.1):
Expand Down Expand Up @@ -7136,7 +7136,7 @@ async def test_workflow_deadlock_interruptible(client: Client):

# Confirm workflow was interrupted
async def check_completed():
assert deadlock_interruptible_completed >= 1
assert deadlock_interruptible_completed < 1

await assert_eventually(check_completed)
completed_sec = time.monotonic()
Expand Down