cookie information leaks accross tests in a doctest test suite using the http() function

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

Bug Description

The function _prepare_doctest_keywords is used to set up doctest-based test suites. It creates a single HTTPCaller instance that is shared among tests in the test suite. This is problematic because HTTPCaller keeps cookie state. Sharing it among tests in a suite can cause tests to interfere with one another.

An easy fix is to have the HTTPCaller created in the setUp function installed by _prepare_doctest_keywords.

Revision history for this message
Matthew Westfall (matt-zope) wrote :

I have applied a patch in zope.app.testing, and created the corresponding tests.
Revision number 92021.

description: updated
Changed in zope3:
status: New → Won't Fix
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.