[LDTP-Dev] [Bug 638229] New: onwindowcreate fails with CannotSendRequest
LDTP (bugzilla.gnome.org)
bugzilla at gnome.org
Tue Dec 28 15:37:27 PST 2010
https://bugzilla.gnome.org/show_bug.cgi?id=638229
LDTP | ldtp2 | unspecified
Summary: onwindowcreate fails with CannotSendRequest
Classification: Other
Product: LDTP
Version: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ldtp2
AssignedTo: ldtp-dev at lists.freedesktop.org
ReportedBy: jeanbaptiste.lallement at gmail.com
QAContact: ldtp-dev at lists.freedesktop.org
GNOME target: ---
GNOME version: ---
ldtp from git.
The following example fails with CannotSendRequest and the callbackis never
executed:
----8<--------8<--------8<----
#!/usr/bin/python
import ldtp, ooldtp
def cb(*data):
print "=== in dlgAuthenticate"
ldtp.waittillguiexist('dlgAuthenticate')
for arg in data:
print arg
ldtp.launchapp('time-admin')
ldtp.waittillguiexist('dlgTimeandDateSettings')
ldtp.wait(1)
ldtp.onwindowcreate('dlgAuthenticate', cb, 'SuperSecretPassword')
print "=== clicking btn2"
ldtp.click('dlgTimeandDateSettings', 'btn2')
print "=== btn2 clicked"
ldtp.wait(2)
---->8-------->8-------->8----
With the backtrace:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/ldtp/__init__.py", line 251, in run
if not self.poll_server():
File "/usr/lib/pymodules/python2.7/ldtp/__init__.py", line 266, in
poll_server
event = poll_events()
File "/usr/lib/pymodules/python2.7/ldtp/client.py", line 51, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
verbose=self.__verbose
File "/usr/lib/pymodules/python2.7/ldtp/client.py", line 74, in request
self, host, handler, request_body, verbose=0)
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1289, in single_request
self.send_request(h, handler, request_body)
File "/usr/lib/python2.7/xmlrpclib.py", line 1391, in send_request
connection.putrequest("POST", handler, skip_accept_encoding=True)
File "/usr/lib/python2.7/httplib.py", line 853, in putrequest
raise CannotSendRequest()
CannotSendRequest
If you remove the last wait, the program ends before the callback being called,
and obviously doesn't crash.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the LDTP-dev
mailing list