This repository has been archived by the owner on May 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a doctest that works without z.a.testing.
This is a stripped-down version of setupininit.txt. It requires that no working zope.app.testing is installed. Why another doctest? Turned out, that turning this doctest ('setupininit.txt') into a regular Python test, would be even more complex. Also conditional doctest parts (i.e.: parts of a doctest file that are only run if a certain condition is met) seem not to be possible. At least I found no (easily readable) way to write something like: >>> if cond: ... run_one_test() result of run_one_test >>> if not cond: ... run_other_test() result of run_other_test. where one of the results would be ignored. Any hints would be welcome.
- Loading branch information