[web2py] Re: Doctests keep getting stuck [solved]

2010-07-02 Thread mdipierro
Thanks for letting us know. On Jul 2, 6:02 am, Kerem Eryılmaz wrote: > Solved. It turns out the tests failed iff I included a specific xmlrpc > function which streams xml. It contained the line: > > response.headers['Content-Type'] = 'application/xml' > > which made the test page fail expecting t

[web2py] Re: Doctests keep getting stuck

2010-07-02 Thread Kerem Eryılmaz
Correction: since what is returned by _TEST is html and not well-formed xml --> since what is returned to _TEST is html and not well-formed xml On Jul 2, 2:02 pm, Kerem Eryılmaz wrote: > Solved. It turns out the tests failed iff I included a specific xmlrpc > function which streams xml. It conta

[web2py] Re: Doctests keep getting stuck

2010-07-02 Thread Kerem Eryılmaz
Solved. It turns out the tests failed iff I included a specific xmlrpc function which streams xml. It contained the line: response.headers['Content-Type'] = 'application/xml' which made the test page fail expecting to see html; since what is returned by _TEST is html and not well-formed xml which

[web2py] Re: Doctests keep getting stuck

2010-07-01 Thread mdipierro
Can you email me your app? Massimo On 1 Lug, 10:16, Kerem Eryılmaz wrote: > Through the administrative interface of web2py. I click on the test > for all controllers i.e.http://localhost:8000/admin/default/test/app_name > > On Jul 1, 3:06 pm, mdipierro wrote: > > > How are you calling the tests

[web2py] Re: Doctests keep getting stuck

2010-07-01 Thread Kerem Eryılmaz
Through the administrative interface of web2py. I click on the test for all controllers i.e. http://localhost:8000/admin/default/test/app_name On Jul 1, 3:06 pm, mdipierro wrote: > How are you calling the tests? > > On 1 Lug, 03:49, Kerem Eryılmaz wrote: > > > > > Hmm... This might be the proble

[web2py] Re: Doctests keep getting stuck

2010-07-01 Thread mdipierro
How are you calling the tests? On 1 Lug, 03:49, Kerem Eryılmaz wrote: > Hmm... This might be the problem then, the doctest results that do not > get loaded are returned as "Content-Type application/xml" whereas the > other tests are "Content-Type text/html; charset=utf-8". Since the > returned ht

[web2py] Re: Doctests keep getting stuck

2010-07-01 Thread Kerem Eryılmaz
Hmm... This might be the problem then, the doctest results that do not get loaded are returned as "Content-Type application/xml" whereas the other tests are "Content-Type text/html; charset=utf-8". Since the returned html isn't a well formed xml, I am getting this error. Do you have an idea why the

[web2py] Re: Doctests keep getting stuck

2010-06-30 Thread mdipierro
The test controller generates " and that is a piece of html received via ajax, not xml. It should be valid. On 30 Giu, 15:25, Kerem Eryılmaz wrote: > I ran the admin application's test page for my controller > (i.e.http://127.0.0.1:8000/admin/default/test/std/etc.py) through firebug, > and i

[web2py] Re: Doctests keep getting stuck

2010-06-30 Thread Kerem Eryılmaz
I ran the admin application's test page for my controller (i.e. http://127.0.0.1:8000/admin/default/test/std/etc.py) through firebug, and it looks like it is an issue with the xml produced by web2py. The parser fails and the page is never updated (i.e. keeps flashing "please wait") but the response