Skip to content

Commit cd8c695

Browse files
committed
app task
1 parent bf1d975 commit cd8c695

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/textual/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ async def run_app(app: App[ReturnType]) -> None:
20992099

21002100
# Launch the app in the "background"
21012101

2102-
app_task = create_task(run_app(app), name=f"run_test {app}")
2102+
self._task = app_task = create_task(run_app(app), name=f"run_test {app}")
21032103

21042104
# Wait until the app has performed all startup routines.
21052105
await app_ready_event.wait()

tests/test_reactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def on_mount(self):
545545
def update(self):
546546
self.holder.attr = "hello world"
547547

548-
async def callback(self):
548+
def callback(self):
549549
nonlocal from_app
550550
from_app = True
551551

0 commit comments

Comments
 (0)