From 6411fa69bce99a4e2467399709ddf2e125ba4db0 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 17 Oct 2010 11:11:32 +0200 Subject: [PATCH] fix example good -> bad (thanks frank) --HG-- branch : trunk --- doc/example/misc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/example/misc.txt b/doc/example/misc.txt index 90866fa5d..842de7ef4 100644 --- a/doc/example/misc.txt +++ b/doc/example/misc.txt @@ -5,9 +5,9 @@ Misc examples Detect if running from within a py.test run -------------------------------------------------------------- -Usually it is a good idea to make application code +Usually it is a bad idea to make application code behave differently if called from a test. But if you -absolutely must find out if your application code is +absolutely must find out if your application code is running from a test you can do something like this:: # content of conftest.py in your testing directory