setUpTestAsModule(test, name=None) fails

Bug #262349 reported by Marius Gedminas
2
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.app.testing
Fix Released
Undecided
Unassigned

Bug Description

zope.app.testing.setup.setUpTestAsModule fails when you don't specify a name:

Traceback (most recent call last):
  File "/usr/lib/python2.5/unittest.py", line 251, in run
    self.setUp()
  File "/home/mg/tmp/buildout-eggs/zope.testing-3.6.0-py2.5.egg/zope/testing/doctest.py", line 2283, in setUp
    self._dt_setUp(test)
  File ".../tests.py", line 24, in setUp
    setup.setUpTestAsModule(test)
  File "/home/mg/tmp/buildout-eggs/zope.app.testing-3.5.4-py2.5.egg/zope/app/testing/setup.py", line 181, in setUpTestAsModule
    if test.globs.haskey('__name__'):
AttributeError: 'dict' object has no attribute 'haskey'

Changed in zope3:
status: New → Won't Fix
Revision history for this message
Christian Theune (ctheune) wrote :

This was fixed in zope.app.testing 3.6.0.

Changed in zope.app.testing:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.