Skip to content

Commit

Permalink
more pauses for demo?
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Dec 30, 2022
1 parent d0529ae commit 91e23ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/blog/posts/better-sleep-on-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ async def sleep(sleep_for: float) -> None:
Args:
sleep_for (float): Seconds to sleep for.
"""
print("sleep")
"""
await get_running_loop().run_in_executor(None, time_sleep, sleep_for)

```
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshot_tests/test_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ def test_demo(snap_compare):
"""Test the demo app (python -m textual)"""
assert snap_compare(
Path("../../src/textual/demo.py"),
press=["down", "down", "down", "_"],
press=["down", "down", "down", "_", "_"],
terminal_size=(100, 30),
)

0 comments on commit 91e23ff

Please sign in to comment.