From 8558658bdebaa8e0d2885f97585ba8d9f5fb48ce Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 7 May 2019 17:35:04 -0400 Subject: Clarify the empty context. #796 --- doc/contexts.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/contexts.rst b/doc/contexts.rst index e3974ea2..f1796aae 100644 --- a/doc/contexts.rst +++ b/doc/contexts.rst @@ -73,6 +73,12 @@ whose names starts with "test". If you have both a static context and a dynamic context, they are joined with a pipe symbol to be recorded as a single string. +Initially, when your program starts running, the dynamic context is an empty +string. Any code measured before a dynamic context is set will be recorded in +this empty context. For example, if you are recording test names as contexts, +then the code run by the test runner before (and between) tests will be in the +empty context. + Context reporting ----------------- -- cgit v1.2.1