-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity
Description
I am using Windows 10, Python 3.6, and pytest 3.7.1 or 3.7.0 (tested with both).
Here are the libraries I have installed:
atomicwrites 1.1.5
attrs 18.1.0
colorama 0.3.9
more-itertools 4.3.0
pip 9.0.3
pluggy 0.7.1
psutil 5.4.6
py 1.5.4
pyserial 3.4
pytest 3.7.1
setuptools 40.0.0
six 1.11.0
websocket-server 0.4
It appears as though when a fixture is setup with a scope of package, the teardown code does not execute.
Simple example:
@pytest.fixture(scope="package")
def example():
setup_code()
yield something
teardown_code()For this example, "teardown_code()" is never executed for me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity