--- you can reply above this line ---

New issue 225: finalizer function does not get called
https://bitbucket.org/hpk42/pytest/issue/225/finalizer-function-does-not-get-called

Thomas Waldmann:

py.test 2.3.3 release from pypi

    :::python

    import pytest

    @pytest.fixture(scope="function")
    def fix(request):
        print "fix init"
        def fin():
            print "fix finalize"
        request.addfinalizer(fin)
        return 42

    def test_xxx(fix):
        print fix
        assert False

Captured stdout:

    ------------------------------------------------------
    fix init
    42
    ========== 1 failed in 0.03 seconds ==============



--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to