<filename>tests/test_fun4.py
import tryfinally.test2
import pytest

def test_fun4():
    assert tryfinally.test2.fun4() == 10

<filename>tests/test_fun4.py
import tryfinally.test2
import pytest

def test_fun4():
    assert tryfinally.test2.fun4() == 10
