Barry Pederson wrote:
I've got failures that seem to be caused by the tests themselves, but with a bit of tweaking they pass.

FreeBSD 6.0
Apache 2.0.55 port built WITH_THREADS=1
Python 2.4.2

DOH! nevermind - just realized I missed this part of Jim's very clear instructions:

-------------
Then (as non-root user!)
^^^^^^^^^^^^^^^^^^^^^^^^

$ cd test
$ python test.py
-------------




However I get some other errors now:

======================================================================
ERROR: test_connectionhandler (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 1220, in test_connectionhandler
    f = urllib.urlopen(url)
  File "/usr/local/lib/python2.4/urllib.py", line 77, in urlopen
    return opener.open(url)
  File "/usr/local/lib/python2.4/urllib.py", line 185, in open
    return getattr(self, name)(url)
  File "/usr/local/lib/python2.4/urllib.py", line 317, in open_http
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "/usr/local/lib/python2.4/urllib.py", line 334, in http_error
    return self.http_error_default(url, fp, errcode, errmsg, headers)
File "/usr/local/lib/python2.4/urllib.py", line 574, in http_error_default
    return addinfourl(fp, headers, "http:" + url)
  File "/usr/local/lib/python2.4/urllib.py", line 863, in __init__
    addbase.__init__(self, fp)
  File "/usr/local/lib/python2.4/urllib.py", line 813, in __init__
    self.read = self.fp.read
AttributeError: 'NoneType' object has no attribute 'read'

----------------------------------------------------------------------
Ran 43 tests in 16.807s

FAILED (errors=1)
F  Stopping Apache...
/usr/local/sbin/httpd -k stop -f /home/barryp/mod_python-3.2.5b/test/conf/test.conf

======================================================================
FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 1805, in testPerRequestTests
    self.failUnless(result.wasSuccessful())
AssertionError

----------------------------------------------------------------------
Ran 6 tests in 63.714s

FAILED (failures=1)
------------------------------

Not sure why running under a different userid is causing this - I cleaned out my /tmp of things owned by www. Will keep looking at this.

        Barry

Reply via email to