1. holger krekel
  2. py-trunk

Commits

holger krekel  committed 969f17b

fix a problem and make a note about pytest_nose calling setup/teardown functions

  • Participants
  • Parent commits e2ee2d8
  • Branches trunk

Comments (0)

Files changed (2)

File ISSUES.txt

View file
 * check oejskit plugin compatibility
 * terminal reporting - dot-printing
 * some simple profiling 
+* move pytest_nose out of pylib because it implicitely extends
+  the protocol now - setup/teardown is called at module level.
+  consider making calling of setup/teardown configurable
 
 refine session initialization / fix custom collect crash
 ---------------------------------------------------------------

File testing/plugin/test_pytest_python.py

View file
         testdir.makepyfile(test_0="""
             l = []
             def pytest_funcarg__something(request):
-                val = request.cached_setup(setup, teardown)
+                val = request.cached_setup(fsetup, fteardown)
                 return val
-            def setup(mycache=[1]):
+            def fsetup(mycache=[1]):
                 l.append(mycache.pop())
                 return l
-            def teardown(something):
+            def fteardown(something):
                 l.remove(something[0])
                 l.append(2)
             def test_list_once(something):