nevow (0.10.0-4) 02-fix-web-log-test.patch

Summary

 nevow/test/test_appserver.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

_logDateTime is a per-instance variable set to None on __init__.
Closes: #625151

--- n/nevow/test/test_appserver.py~	2007-12-20 16:51:48.000000000 +0100
+++ n/nevow/test/test_appserver.py	2011-05-18 13:49:38.866464923 +0200
@@ -154,6 +154,7 @@
                 return "boring"
         self.site = appserver.NevowSite(Res1())
         self.site.logFile = StringIO()
+        self.site._logDateTime = 'faketime' # ugly :(
 
     def tearDown(self):
         del self.site
@@ -177,7 +178,6 @@
             from twisted.web import http
         except ImportError:
             from twisted.protocols import http
-        http._logDateTime = 'faketime' # ugly :(
         proto = self.renderResource('/foo')
         logLines = proto.site.logFile.getvalue().splitlines()
         self.assertEquals(len(logLines), 1)