From 4031588811523a0ed29c8d509707b203d22d9a2b Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 22 Nov 2013 15:12:12 +0100 Subject: [PATCH] add a note to the documentation that pytest does not mimick nose try to perform "import isolation". Addresses issue268. --- doc/en/nose.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/en/nose.txt b/doc/en/nose.txt index ef9b946ed..540b46083 100644 --- a/doc/en/nose.txt +++ b/doc/en/nose.txt @@ -39,6 +39,13 @@ Unsupported idioms / known issues If you however rather think pytest should support the unittest-spelling on plain classes please post `to this issue `_. + +- nose imports test modules with the same import path (e.g. + ``tests.test_mod``) but different file system paths + (e.g. ``tests/test_mode.py`` and ``other/tests/test_mode.py``) + by extending sys.path/import semantics. pytest does not do that + but there is discussion in `issue268 `_ for adding some support. Note that + `nose2 choose to avoid this sys.path/import hackery `_. - nose-style doctests are not collected and executed correctly, also doctest fixtures don't work.