From 51b40dd22c6a856c4a0c190fb2c33ac6640833a8 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Wed, 16 Jan 2013 17:09:17 +0000 Subject: [PATCH] Add isolation plugin as a feature --- ISSUES.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ISSUES.txt b/ISSUES.txt index 9b5c8060e..446d5b9c9 100644 --- a/ISSUES.txt +++ b/ISSUES.txt @@ -330,3 +330,21 @@ in one content string:: This could be run with at least three different ways to invoke pytest: through the shell, through "python -m pytest" and inlined. As inlined would be the fastest it could be run first (or "--fast" mode). + + +Create isolate plugin +--------------------- +tags: feature + +The idea is that you can e.g. import modules in a test and afterwards +sys.modules, sys.meta_path etc would be reverted. It can go further +then just importing however, e.g. current working direcroty, file +descriptors, ... + +This would probably be done by marking:: + + @pytest.mark.isolate(importing=True, cwd=True, fds=False) + def test_foo(): + ... + +With the possibility of doing this globally in an ini-file.