diff options
author | Floris Bruynooghe <flub@devork.be> | 2013-01-16 17:09:17 +0000 |
---|---|---|
committer | Floris Bruynooghe <flub@devork.be> | 2013-01-16 17:09:17 +0000 |
commit | 51b40dd22c6a856c4a0c190fb2c33ac6640833a8 (patch) | |
tree | 708a45176f8222c3f8dd6d0b79eefdd58fcf2639 /ISSUES.txt | |
parent | 65edf87ea65d4d039823e883fb0184e75f706033 (diff) | |
download | pytest-51b40dd22c6a856c4a0c190fb2c33ac6640833a8.tar.gz |
Add isolation plugin as a feature
Diffstat (limited to 'ISSUES.txt')
-rw-r--r-- | ISSUES.txt | 18 |
1 files changed, 18 insertions, 0 deletions
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. |