[Pytest-commit] commit/pytest: hpk42: fix issue377 by clarifying in the nose-compat docs that pytest

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Nov 22 14:08:39 CET 2013


1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/4ff693c6e443/
Changeset:   4ff693c6e443
User:        hpk42
Date:        2013-11-22 14:07:56
Summary:     fix issue377 by clarifying in the nose-compat docs that pytest
does not duplicate the unittest-API into the "plain" namespace.
Affected #:  2 files

diff -r b990b02ea715ab5bf95f32dd8661308d994626c3 -r 4ff693c6e4436ff1abb6f2a7da96b73d0bae1993 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -82,6 +82,9 @@
 
 - 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 -r b990b02ea715ab5bf95f32dd8661308d994626c3 -r 4ff693c6e4436ff1abb6f2a7da96b73d0bae1993 doc/en/nose.txt
--- a/doc/en/nose.txt
+++ b/doc/en/nose.txt
@@ -30,9 +30,18 @@
 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
+  <https://bitbucket.org/hpk42/pytest/issue/377/>`_.
+  
 - nose-style doctests are not collected and executed correctly,
   also doctest fixtures don't work.
 
 - no nose-configuration is recognized
 
-

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list