Tallefer / pubsubhubbub

Automatically exported from code.google.com/p/pubsubhubbub
Other
0 stars 0 forks source link

Hub unittests don't pass on windows #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

======================================================================
ERROR: testNotLoggedIn (__main__.WorkQueueOnlyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "C:\pubsubhubbub\hub\main_test.py", line 187, in testNotLoggedIn
  self.handle('get')
 File "C:\pubsubhubbub\hub\testutil.py", line 153, in handle
  getattr(handler, method.lower())()
 File "C:\pubsubhubbub\hub\main.py", line 281, in decorated
  myself.redirect(users.create_login_url(myself.request.url))
 File "C:\Program Files\Google\google_appengine\lib\webob\webob
\__init__.py", l
ine 642, in url
  url = self.path_url
 File "C:\Program Files\Google\google_appengine\lib\webob\webob
\__init__.py", l
ine 617, in path_url
  return self.application_url + urllib.quote(self.environ.get
('PATH_INFO', '')
)
 File "C:\Program Files\Google\google_appengine\lib\webob\webob
\__init__.py", l
ine 610, in application_url
  return self.host_url + urllib.quote(self.environ.get('SCRIPT_NAME',
''))
 File "C:\Program Files\Google\google_appengine\lib\webob\webob
\__init__.py", l
ine 583, in host_url
  url = e['wsgi.url_scheme'] + '://'
KeyError: 'wsgi.url_scheme'
======================================================================
FAIL: Tests retry delay amounts until we finally give up on event
delivery.
----------------------------------------------------------------------
Traceback (most recent call last):
 File "C:\pubsubhubbub\hub\main_test.py", line 969, in
testGetNextSubscribers_g
iveUp
  self.assertEquals(etas, found_etas)
AssertionError: ['2009/08/13 01:36:46', '2009/08/13 01:36:51',
'2009/08/13 01:37
:01', '2009/08/13 01:37:21', '2009/08/13 01:38:01', '2009/08/13
01:39:21', '2009
/08/13 01:42:01', '2009/08/13 01:47:21'] != ['2009/08/13 02:36:46',
'2009/08/13
02:36:51', '2009/08/13 02:37:01', '2009/08/13 02:37:21', '2009/08/13
02:38:01',
'2009/08/13 02:39:21', '2009/08/13 02:42:01', '2009/08/13 02:47:21']

Likely timezone issues in there as well

Original issue reported on code.google.com by bslatkin on 28 Aug 2009 at 10:53

GoogleCodeExporter commented 9 years ago
Hi,
I am running subscriber main.py then I get error KeyError: 'PATH_INFO'.
Please help me :(. Thanks in advance.

WARNING:root:You are using the default Django version (0.96). The default 
Django version will change in an App Engine release in the near future. Please 
call use_library() to explicitly select a Django version. For more information 
see http://code.google.com/appengine/docs/python/tools/libraries.html#Django
Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/home/openstack/google_appengine/google/appengine/ext/webapp/__init__.py", line 683, in __call__
    match = regexp.match(request.path)
  File "/usr/lib/pymodules/python2.7/webob/request.py", line 292, in path
    urllib.quote(self.path_info, PATH_SAFE))
  File "/usr/lib/pymodules/python2.7/webob/descriptors.py", line 23, in fget
    return req.environ[key]
KeyError: 'PATH_INFO'
Status: 500 Internal Server Error
Content-Type: text/plain
Content-Length: 59

Original comment by wab...@gmail.com on 4 Aug 2011 at 1:43

GoogleCodeExporter commented 9 years ago
Try using Python 2.6?

Original comment by bslatkin on 4 Aug 2011 at 5:22