From 1dc2a45cb265e064ceb8f72b7aacf21f394891a5 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 22 Nov 2013 14:07:56 +0100 Subject: [PATCH] fix issue377 by clarifying in the nose-compat docs that pytest does not duplicate the unittest-API into the "plain" namespace. --- CHANGELOG | 3 +++ doc/en/nose.txt | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 3553abe23..b2ad9ea0a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -82,6 +82,9 @@ Unreleased - fixed version comparison in pytest.importskip(modname, minverstring) +- fix issue377 by clarifying in the nose-compat docs that pytest + does not duplicate the unittest-API into the "plain" namespace. + Changes between 2.4.1 and 2.4.2 ----------------------------------- diff --git a/doc/en/nose.txt b/doc/en/nose.txt index 0c1931a4d..ef9b946ed 100644 --- a/doc/en/nose.txt +++ b/doc/en/nose.txt @@ -30,9 +30,18 @@ Supported nose Idioms Unsupported idioms / known issues ---------------------------------- +- unittest-style ``setUp, tearDown, setUpClass, tearDownClass`` + are recognized only on ``unittest.TestCase`` classes but not + on plain classes. ``nose`` supports these methods also on plain + classes but pytest deliberately does not. As nose and pytest already + both support ``setup_class, teardown_class, setup_method, teardown_method`` + it doesn't seem useful to duplicate the unittest-API like nose does. + If you however rather think pytest should support the unittest-spelling on + plain classes please post `to this issue + `_. + - nose-style doctests are not collected and executed correctly, also doctest fixtures don't work. - no nose-configuration is recognized -