← Back to team overview

launchpad-reviewers team mailing list archive

Re: [Merge] lp:~james-w/python-oops-tools/recent-oopses into lp:python-oops-tools

 

The attempt to merge lp:~james-w/python-oops-tools/recent-oopses into lp:python-oops-tools failed.Below is the output from the failed tests.

find . -type f -name '*.py[co]' -exec rm -f {} \;
rm -f bin/buildout
rm -f src/oopstools/settings.py
bzr clean-tree --unknown --force
bzr up download-cache
python bootstrap.py \
		--setup-source=download-cache/ez_setup.py \
		--download-base=download-cache/dist --eggs=eggs \
		--version=1.5.2
Generated script '/home/pqm/pqm-workdir/oops-tools/bin/buildout'.
bin/buildout configuration:db-port=5433
Develop: '/home/pqm/pqm-workdir/oops-tools/.'
Uninstalling filetemplates.
Updating scripts.
Installing filetemplates.
Updating django.
Updating docs.
Updating tags.
bin/test
Creating test database for alias 'default'...
Destroying test database for alias 'default'...

W: line 4 [buildbot-staging]: Deprecated key 'location' used
I: This option will be removed in the future; please update your configuration
W: line 2 [pqm]: Deprecated key 'location' used
I: This option will be removed in the future; please update your configuration
W: line 3 [pqm-oops-tools]: Deprecated key 'location' used
I: This option will be removed in the future; please update your configuration
W: line 1 [precise]: Deprecated key 'location' used
I: This option will be removed in the future; please update your configuration
I: [pqm-oops-tools chroot] Running command: "cd /home/pqm/pqm-workdir/oops-tools && make check"
Nothing to delete.
+N  dist/bzr-2.6.0.tar.gz
+N  dist/d2to1-0.2.10.tar.gz
+N  dist/dkimpy-0.5.4.tar.gz
+N  dist/keyring-1.2.2-notestrunner.zip
+N  dist/mock-1.0.1.tar.gz
+N  dist/oslo.config-1.1.1.tar.gz
+N  dist/pbr-0.5.20.tar.gz
+N  dist/pip-1.4.tar.gz
+N  dist/prettytable-0.7.2.tar.bz2
+N  dist/python-keystoneclient-0.3.1.tar.gz
+N  dist/python-swiftclient-1.5.0.tar.gz
+N  dist/python_keystoneclient-0.3.1-py2.6.egg
+N  dist/python_keystoneclient-0.3.1-py2.7.egg
+N  dist/python_swiftclient-1.5.0-py2.6.egg
+N  dist/python_swiftclient-1.5.0-py2.7.egg
+N  dist/requests-1.2.3.tar.gz
+N  dist/s4-0.1.2.tar.gz
+N  dist/setuptools-git-1.0.tar.gz
+N  dist/six-1.3.0.tar.gz
+N  dist/yui_3.10.3.zip
All changes applied successfully.
Updated to revision 568 of branch http://bazaar.launchpad.net/~launchpad/lp-source-dependencies/trunk
/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/loaders/filesystem.py:58: DeprecationWarning: 'django.template.loaders.filesystem.load_template_source' is deprecated; use 'django.template.loaders.filesystem.Loader' instead.
  DeprecationWarning
/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/loaders/app_directories.py:71: DeprecationWarning: 'django.template.loaders.app_directories.load_template_source' is deprecated; use 'django.template.loaders.app_directories.Loader' instead.
  DeprecationWarning
/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/contrib/auth/__init__.py:26: DeprecationWarning: Authentication backends without a `supports_object_permissions` attribute are deprecated. Please define it in <class 'django_openid_auth.auth.OpenIDBackend'>.
  DeprecationWarning)
/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/contrib/auth/__init__.py:31: DeprecationWarning: Authentication backends without a `supports_anonymous_user` attribute are deprecated. Please define it in <class 'django_openid_auth.auth.OpenIDBackend'>.
  DeprecationWarning)
F......F.....FFF.......................EEEEE
======================================================================
ERROR: test_inactive_report (test_report.ReportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/test_report.py", line 39, in test_inactive_report
    resp = self.client.get('/reports/%s/' % (report_name,))
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 439, in get
    response = super(Client, self).get(path, data=data, **extra)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 241, in get
    return self.request(**r)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
    request.path_info)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
    result = func(*args)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
    exception_types = {i.id: i.exception_type for i in infestations}
                                                ^
SyntaxError: invalid syntax

======================================================================
ERROR: test_no_recent_oopses (test_report.ReportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/test_report.py", line 45, in test_no_recent_oopses
    resp = self.client.get('/reports/%s/' % (report_name,))
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 439, in get
    response = super(Client, self).get(path, data=data, **extra)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 241, in get
    return self.request(**r)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
    request.path_info)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
    result = func(*args)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
    exception_types = {i.id: i.exception_type for i in infestations}
                                                ^
SyntaxError: invalid syntax

======================================================================
ERROR: test_no_report (test_report.ReportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/test_report.py", line 33, in test_no_report
    resp = self.client.get('/reports/some-report/')
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 439, in get
    response = super(Client, self).get(path, data=data, **extra)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 241, in get
    return self.request(**r)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
    request.path_info)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
    result = func(*args)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
    exception_types = {i.id: i.exception_type for i in infestations}
                                                ^
SyntaxError: invalid syntax

======================================================================
ERROR: test_number_of_queries (test_report.ReportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/test_report.py", line 92, in test_number_of_queries
    expected_queries, self.client.get, url)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/testcases.py", line 544, in assertNumQueries
    func(*args, **kwargs)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 439, in get
    response = super(Client, self).get(path, data=data, **extra)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 241, in get
    return self.request(**r)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
    request.path_info)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
    result = func(*args)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
    exception_types = {i.id: i.exception_type for i in infestations}
                                                ^
SyntaxError: invalid syntax

======================================================================
ERROR: test_recent_oopses (test_report.ReportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/test_report.py", line 76, in test_recent_oopses
    resp = self.client.get('/reports/%s/' % (report_name,))
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 439, in get
    response = super(Client, self).get(path, data=data, **extra)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/client.py", line 241, in get
    return self.request(**r)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
    request.path_info)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
    result = func(*args)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
    exception_types = {i.id: i.exception_type for i in infestations}
                                                ^
SyntaxError: invalid syntax

======================================================================
FAIL: /home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/admin-pagetest.txt
Doctest: admin-pagetest.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for admin-pagetest.txt
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/admin-pagetest.txt", line 0

----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/admin-pagetest.txt", line 26, in admin-pagetest.txt
Failed example:
    b.getControl('Log in').click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest admin-pagetest.txt[10]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 630, in click
        self.browser._clickSubmit(self.mech_form, self.mech_control, (1,1))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 417, in _clickSubmit
        id=control.id, name=control.name, label=label, coord=coord))
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 202, in open
        response = meth(req, response)
      File "/usr/lib/python2.6/dist-packages/mechanize/_http.py", line 612, in http_response
        "http", request, response, code, msg, hdrs)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 219, in error
        result = apply(self._call_chain, args)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/usr/lib/python2.6/dist-packages/mechanize/_http.py", line 146, in http_error_302
        return self.parent.open(new)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
        response = callback(request, *callback_args, **callback_kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/contrib/admin/sites.py", line 214, in wrapper
        return self.admin_view(view, cacheable)(*args, **kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/decorators.py", line 93, in _wrapped_view
        response = view_func(request, *args, **kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
        response = view_func(request, *args, **kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/contrib/admin/sites.py", line 197, in inner
        return view(request, *args, **kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
        response = view_func(request, *args, **kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/contrib/admin/sites.py", line 382, in index
        context_instance=context_instance
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/shortcuts/__init__.py", line 20, in render_to_response
        return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/loader.py", line 188, in render_to_string
        return t.render(context_instance)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/base.py", line 123, in render
        return self._render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/utils.py", line 60, in instrumented_test_render
        return self.nodelist.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/debug.py", line 73, in render_node
        result = node.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/loader_tags.py", line 127, in render
        return compiled_parent._render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/utils.py", line 60, in instrumented_test_render
        return self.nodelist.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/debug.py", line 73, in render_node
        result = node.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/loader_tags.py", line 127, in render
        return compiled_parent._render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/test/utils.py", line 60, in instrumented_test_render
        return self.nodelist.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/debug.py", line 73, in render_node
        result = node.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/defaulttags.py", line 311, in render
        return self.nodelist_true.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/debug.py", line 73, in render_node
        result = node.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/defaulttags.py", line 311, in render
        return self.nodelist_true.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/debug.py", line 73, in render_node
        result = node.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/loader_tags.py", line 64, in render
        result = block.nodelist.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/debug.py", line 73, in render_node
        result = node.render(context)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/template/defaulttags.py", line 437, in render
        url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 391, in reverse
        *args, **kwargs)))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 312, in reverse
        possibilities = self.reverse_dict.getlist(lookup_view)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 229, in _get_reverse_dict
        self._populate()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 220, in _populate
        lookups.appendlist(pattern.callback, (bits, p_pattern))
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
    TemplateSyntaxError: Caught SyntaxError while rendering: invalid syntax (views.py, line 114)
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/admin-pagetest.txt", line 30, in admin-pagetest.txt
Failed example:
    b.getLink('Oops').click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest admin-pagetest.txt[11]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 329, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 624, in find_link
        return self._filter_links(self._factory.links(), **kwds).next()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 645, in _filter_links
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/admin-pagetest.txt", line 32, in admin-pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest admin-pagetest.txt[12]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/admin-pagetest.txt", line 35, in admin-pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...<h1>Oops administration</h1>
    - ...


======================================================================
FAIL: /home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt
Doctest: link-bug-pagetest.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for link-bug-pagetest.txt
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 0

----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 15, in link-bug-pagetest.txt
Failed example:
    b.open('http://localhost/oops/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest link-bug-pagetest.txt[6]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 19, in link-bug-pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "OOPS-689S4"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest link-bug-pagetest.txt[7]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 20, in link-bug-pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest link-bug-pagetest.txt[8]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 22, in link-bug-pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest link-bug-pagetest.txt[9]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 27, in link-bug-pagetest.txt
Failed example:
    '2112' in b.contents
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest link-bug-pagetest.txt[10]>", line 1, in <module>
    TypeError: argument of type 'NoneType' is not iterable
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 39, in link-bug-pagetest.txt
Failed example:
    b.getControl(name="bug_number").value = "2112"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest link-bug-pagetest.txt[14]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 40, in link-bug-pagetest.txt
Failed example:
    b.getControl("Bug #").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest link-bug-pagetest.txt[15]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 44, in link-bug-pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...Bug: <a href="https://launchpad.net/bugs/2112";...
    - ...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/link-bug-pagetest.txt", line 53, in link-bug-pagetest.txt
Failed example:
    oops.oopsinfestation.bug
Differences (ndiff with -expected +actual):
    - 2112


======================================================================
FAIL: /home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt
Doctest: pagetest.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for pagetest.txt
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 0

----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 7, in pagetest.txt
Failed example:
    b.open('http://localhost/oops/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[2]>", line 1, in <module>
        b.open('http://localhost/oops/')
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 9, in pagetest.txt
Failed example:
    b.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[3]>", line 1, in <module>
        b.title
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 193, in title
        return self.mech_browser.title()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 464, in title
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 15, in pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "foo"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[4]>", line 1, in <module>
        b.getControl(name="oopsid").value = "foo"
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 16, in pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[5]>", line 1, in <module>
        b.getControl("Search OOPS").click()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 18, in pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[6]>", line 1, in <module>
        b.url
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 21, in pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...Your search: <b>foo</b> didn't match any oops...
    - ...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 28, in pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "OOPS-1308X1"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[8]>", line 1, in <module>
        b.getControl(name="oopsid").value = "OOPS-1308X1"
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 29, in pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[9]>", line 1, in <module>
        b.getControl("Search OOPS").click()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 31, in pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[10]>", line 1, in <module>
        b.url
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 34, in pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...<title>OOPS-1308x1</title>...
    - ...
    - ...Reporter: <span>X</span>...
    - ...Hostname: <span>Unknown</span>...
    - ...<div id="request_variables">...
    - ...
    - ...<li>CHANNEL_CREATION_TIME: 1...</li>...
    - ...SQL Statement Log...
    - ...Start...Length...Database id...Statement...Traceback...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 48, in pagetest.txt
Failed example:
    b.open('http://localhost/oops/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[12]>", line 1, in <module>
        b.open('http://localhost/oops/')
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 49, in pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "1308X1"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[13]>", line 1, in <module>
        b.getControl(name="oopsid").value = "1308X1"
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 50, in pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[14]>", line 1, in <module>
        b.getControl("Search OOPS").click()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 52, in pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[15]>", line 1, in <module>
        b.url
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 55, in pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...<title>OOPS-1308x1</title>...
    - ...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 62, in pagetest.txt
Failed example:
    b.open('http://localhost/oops/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[17]>", line 1, in <module>
        b.open('http://localhost/oops/')
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 63, in pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "oops-1308x1"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[18]>", line 1, in <module>
        b.getControl(name="oopsid").value = "oops-1308x1"
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 64, in pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[19]>", line 1, in <module>
        b.getControl("Search OOPS").click()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 66, in pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[20]>", line 1, in <module>
        b.url
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 69, in pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...<title>OOPS-1308x1</title>...
    - ...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 84, in pagetest.txt
Failed example:
    b.open('http://localhost/oops/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[25]>", line 1, in <module>
        b.open('http://localhost/oops/')
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 85, in pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "1308x1"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[26]>", line 1, in <module>
        b.getControl(name="oopsid").value = "1308x1"
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 86, in pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[27]>", line 1, in <module>
        b.getControl("Search OOPS").click()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 90, in pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[29]>", line 1, in <module>
        b.url
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 93, in pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...<title>OOPS-1308x1</title>...
    - ...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 101, in pagetest.txt
Failed example:
    b.open('http://localhost/oops/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[31]>", line 1, in <module>
        b.open('http://localhost/oops/')
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 102, in pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "1925canistelubuntu0"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[32]>", line 1, in <module>
        b.getControl(name="oopsid").value = "1925canistelubuntu0"
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 103, in pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[33]>", line 1, in <module>
        b.getControl("Search OOPS").click()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 105, in pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[34]>", line 1, in <module>
        b.url
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 108, in pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...<title>1925canistelubuntu0</title>...
    - ...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 128, in pagetest.txt
Failed example:
    b.open('http://localhost/oops/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[40]>", line 1, in <module>
        b.open('http://localhost/oops/')
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 129, in pagetest.txt
Failed example:
    b.getControl(name="oopsid").value = "OOPS-689S4"
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[41]>", line 1, in <module>
        b.getControl(name="oopsid").value = "OOPS-689S4"
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 130, in pagetest.txt
Failed example:
    b.getControl("Search OOPS").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[42]>", line 1, in <module>
        b.getControl("Search OOPS").click()
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 132, in pagetest.txt
Failed example:
    b.url
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[43]>", line 1, in <module>
        b.url
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 183, in url
        return self.mech_browser.geturl()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 340, in geturl
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 135, in pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...<title>OOPS-689S4</title>...
    - ...
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/pagetest.txt", line 142, in pagetest.txt
Failed example:
    Oops.objects.get(oopsid='OOPS-689S4')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest pagetest.txt[45]>", line 1, in <module>
        Oops.objects.get(oopsid='OOPS-689S4')
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/db/models/manager.py", line 132, in get
        return self.get_query_set().get(*args, **kwargs)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/db/models/query.py", line 349, in get
        % self.model._meta.object_name)
    DoesNotExist: Oops matching query does not exist.


======================================================================
FAIL: /home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader-pagetest.txt
Doctest: prefixloader-pagetest.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for prefixloader-pagetest.txt
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader-pagetest.txt", line 0

----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader-pagetest.txt", line 7, in prefixloader-pagetest.txt
Failed example:
    b.open('http://localhost/prefixloader/')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest prefixloader-pagetest.txt[2]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 241, in open
        self.mech_browser.open(url, data)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 210, in open
        return self._mech_open(url_or_req, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/usr/lib/python2.6/dist-packages/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/djangobrowser.py", line 162, in http_open
        return self.do_open(DjangoConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
        request.path_info)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 252, in resolve
        sub_match = pattern.resolve(new_path)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 158, in resolve
        return ResolverMatch(self.callback, args, kwargs, self.name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 164, in _get_callback
        self._callback = get_callable(self._callback_str)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/functional.py", line 124, in wrapper
        result = func(*args)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/core/urlresolvers.py", line 91, in get_callable
        lookup_view = getattr(import_module(mod_name), func_name)
      File "/home/pqm/pqm-workdir/oops-tools/eggs/Django-1.3.3-py2.6.egg/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/views.py", line 114
         exception_types = {i.id: i.exception_type for i in infestations}
                                                     ^
     SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader-pagetest.txt", line 9, in prefixloader-pagetest.txt
Failed example:
    b.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest prefixloader-pagetest.txt[3]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 193, in title
        return self.mech_browser.title()
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 464, in title
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader-pagetest.txt", line 12, in prefixloader-pagetest.txt
Failed example:
    b.getControl("Load prefixes").click()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest prefixloader-pagetest.txt[4]>", line 1, in <module>
      File "/home/pqm/pqm-workdir/oops-tools/eggs/zope.testbrowser-3.8.0-py2.6.egg/zope/testbrowser/browser.py", line 371, in getControl
        label, name, self.mech_browser.forms(), include_subcontrols=True)
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 424, in forms
        if not self.viewing_html():
      File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 449, in viewing_html
        raise BrowserStateError("not viewing any document")
    BrowserStateError: not viewing any document
----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader-pagetest.txt", line 14, in prefixloader-pagetest.txt
Failed example:
    print b.contents
Differences (ndiff with -expected +actual):
    + None
    - <...
    - ...Loaded into the database:
    - ...<ul>BZR...EBZR...SMESSH</ul>
    - ...


======================================================================
FAIL: /home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader.txt
Doctest: prefixloader.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for prefixloader.txt
  File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader.txt", line 0

----------------------------------------------------------------------
File "/home/pqm/pqm-workdir/oops-tools/src/oopstools/oops/test/prefixloader.txt", line 50, in prefixloader.txt
Failed example:
    prefix_loader.load_prefixes_into_database()
Differences (ndiff with -expected +actual):
    - ['BZR', 'EBZR', 'SMESSH']
    + ['B', 'BZR', 'EA', 'EBZR', 'SMESSH', 'SMS']


----------------------------------------------------------------------
Ran 44 tests in 7.966s

FAILED (failures=5, errors=5)
make: *** [check] Error 1

-- 
https://code.launchpad.net/~james-w/python-oops-tools/recent-oopses/+merge/201639
Your team python-oops-tools reviewers is requested to review the proposed merge of lp:~james-w/python-oops-tools/recent-oopses into lp:python-oops-tools.


References