aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-19 20:33:01 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-19 20:33:01 +0000
commit2b76c5fd83d27c2485609413f4392eb35af10912 (patch)
treeb7639b2a80a629a85cade073b0ebd287a9f578a7 /mytest.py
parentceebb28346d39f3c18f5fdc47fd84f48a207589a (diff)
downloadenigma2-2b76c5fd83d27c2485609413f4392eb35af10912.tar.gz
enigma2-2b76c5fd83d27c2485609413f4392eb35af10912.zip
fix returning screen in openWithCallback
re-add close assertion
Diffstat (limited to 'mytest.py')
-rw-r--r--mytest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mytest.py b/mytest.py
index e953d8f3..8b3ad497 100644
--- a/mytest.py
+++ b/mytest.py
@@ -250,6 +250,7 @@ class Session:
def openWithCallback(self, callback, screen, *arguments, **kwargs):
dlg = self.open(screen, *arguments, **kwargs)
dlg.callback = callback
+ return dlg
def open(self, screen, *arguments, **kwargs):
if len(self.dialog_stack) and not self.in_exec:
@@ -278,7 +279,7 @@ class Session:
# after close of the top dialog, the underlying will
# gain focus again (for a short time), thus triggering
# the onExec, which opens the dialog again, closing the loop.
- # assert screen == self.current_dialog
+ assert screen == self.current_dialog
self.current_dialog.returnValue = retval
self.delay_timer.start(0, 1)