2010-06-16 09:24:40 |
Christian Theune |
description |
The function _prepare_doctest_keywords is used to set up doctest-bases 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. |
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.
|
|