From 598aefc686cf2149807342583856bd503c2743b5 Mon Sep 17 00:00:00 2001 From: Lev Maximov Date: Thu, 18 May 2017 21:18:09 +0700 Subject: [PATCH] small fix in an example from the docs --- doc/en/example/simple.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index b9f3daecc..5e5134c70 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -269,6 +269,7 @@ running from a test you can do something like this: sys._called_from_test = True def pytest_unconfigure(config): + import sys del sys._called_from_test and then check for the ``sys._called_from_test`` flag: