Re: athena evolution path to 3G networks 'not so reliable' connections

[email protected] Sat, 06 Feb 2010 15:44:45 -0000
Newsgroups gmane.comp.python.quotient.dev
Message-ID <20100206154445.26099.51711388.divmod.xquotient.520@localhost.localdomain>
On 11 Nov 2009, 04:36 pm, [email protected] wrote:
>Hello Jean-Paul
>
>wanted to dive into that matter and thought I first look at the tests
>for the LivePages. Being on MSW is often not ideal but being bound to
>develop for this platform too I wondered if I could bring the skipped
>tests to run on MSW too. Brought in SpiderMonkey V1.7 as js.exe and
>tweaked nevow.testutil.py such that I now get from trial test
>
>===============================================================================
>[FAIL]:
>nevow.test.test_consolejstest.JSGenerationTestCase.test_generateTestScript
>
>Traceback (most recent call last):
>  File "C:\proj\nevow\Nevow\nevow\test\test_consolejstest.py", line 164,
>in gotResult
>    ''])
>twisted.trial.unittest.FailTest: not equal:
>a = ['hello from ConsoleJSTestFoo\r',
>'hello from ConsoleJSTestFoo.Bar\r',
>'hello from ConsoleJSTestFoo.Baz\r',
>'hello from the test module\r',
>'']
>b = ['hello from ConsoleJSTestFoo',
>'hello from ConsoleJSTestFoo.Bar',
>'hello from ConsoleJSTestFoo.Baz',
>'hello from the test module',
>'']
>
>-------------------------------------------------------------------------------
>Ran 1047 tests in 8.125s
>
>FAILED (skips=4, expectedFailures=2, failures=1, successes=1040)
>
>The JS tests run fine up to the one failing which is most probably
>because of the line endings given in a.
>
>If this is of any interest please find the patch to testutil.py 
>attached

Hi Werner,

Thanks for looking into this.  I've applied something like your patch, 
so the next version of Nevow will perhaps be a bit closer to offering js 
testing on Windows. :)  As I don't actually have a Windows machine, nor 
do any of the Nevow Windows buildbots have smjs installed, I'm not sure 
exactly what the current state is on Windows, though.

Thanks,
Jean-Paul