Skip to content

Commit 9240de7

Browse files
author
Eitan Isaacson
committed
useful debug print on client end. TODO: convert to a proper logger output.
1 parent 325fcde commit 9240de7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/gcalctool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class WidgetTestCase(unittest.TestCase):
2525
def setUp(self):
2626
try:
2727
ldtp.launchapp('gcalctool')
28-
ldtp.waittillguiexist('frmCalculator*')
28+
ldtp.waittillguiexist('frmCalculator*', guiTimeOut=5)
2929
except:
3030
self.tearDown()
3131
raise

ldtp/client.py

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
class _Method(xmlrpclib._Method):
2828
def __call__(self, *args, **kwargs):
29+
print '%s(%s)' % (self.__name,
30+
', '.join(map(repr, args)+['%s=%s' % (k, repr(v)) for k, v in kwargs.items()]))
2931
args += (kwargs,)
3032
return self.__send(self.__name, args)
3133

0 commit comments

Comments
 (0)