[mod_python] Win32 platform - testing...

David Fraser davidf at sjsoft.com
Fri Mar 5 11:34:54 EST 2004


Gregory (Grisha) Trubetskoy wrote:

>[snip]
>  
>
>>I have not yet fully tested this binary or installer but it seemed to
>>run our applications fine.
>>mod_python.so and mod_python-3.1.3.win32.exe can be downloaded from:
>>http://davidf.sjsoft.com/files/mod_python.so
>>http://davidf.sjsoft.com/files/mod_python-3.1.3.win32.exe
>>    
>>
>
>See if you can run the tests. You will have to manually rig a testconf.py
>(NOTE - it will not like blanks in path names, e.g. "Program Files", the
>only work around I found was using the DOS path name, which you can
>determine by firing up command.exe (as opposed to cmd.exe) i believe). But
>once you get past the testconf.py, usually all tests run OK.
>  
>
OK, further info on the testing on win32...
You can't test off a shared network drive on Windows! Apache will refuse 
to start up at all! (Interestingly, it will run if you run without the 
-k start, but not with it - and no error messages are generated...)
Also, you can't simply have compiled mod_python, you need to have 
installed it...
Once that was sorted out, I got the following errors (I have included 
relevant messages from the log files):
* Testing req.requires()
F
======================================================================
FAIL: test_req_requires (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 418, in test_req_requires
self.fail(`rsp`)
File "C:\Python\Python2.3.3\lib\unittest.py", line 270, in fail
raise self.failureException, msg
AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 
2.0//EN">\n<html><head>\n<title>401 Author
ization Required</title>\n</head><body>\n<h1>Authorization 
Required</h1>\n<p>This server could not v
erify that you\nare authorized to access the document\nrequested. Either 
you supplied the wrong\ncr
edentials (e.g., bad password), or your\nbrowser doesn\'t understand how 
to supply\nthe credentials
required.</p>\n</body></html>\n'

* Testing req.sendfile()
F
[Fri Mar 05 11:27:38 2004] [error] [client 127.0.0.1] PythonHandler 
tests::req_sendfile: Traceback (most recent call last):
[Fri Mar 05 11:27:38 2004] [error] [client 127.0.0.1] PythonHandler 
tests::req_sendfile: File "\PURELIB\mod_python\apache.py", line 299, in 
HandlerDispatch
[Fri Mar 05 11:27:38 2004] [error] [client 127.0.0.1] PythonHandler 
tests::req_sendfile: File 
"C:/Apache/mod_python-3.1.3/test\htdocs\tests.py", line 680, in req_sendfile
os.remove(fname)
[Fri Mar 05 11:27:38 2004] [error] [client 127.0.0.1] PythonHandler 
tests::req_sendfile: OSError: [Errno 13] Permission denied: 
'c:\\winnt\\temp\\tmpym3ms4txt'
* Testing mod_python.psp
F
(this is not surprising as I haven't yet got mod_python.psp building...)

I'll work on the remaining issues...

David



More information about the Mod_python mailing list