-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
status: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarificationtype: infrastructureimprovement to development/releases/CI structureimprovement to development/releases/CI structure
Description
In the "Getting Started" document, in section "Group multiple tests in a class" (https://github.com/pytest-dev/pytest/blob/master/doc/en/getting-started.rst#group-multiple-tests-in-a-class), the document states:
Something to be aware of when grouping tests inside classes is that each test has a unique instance of the class.
Having each test share the same class instance would be very detrimental to test isolation and would promote poor test practices.
This is outlined below:
However, in what is shown below, both tests are demonstrated to share the same instance of the class, at 0xdeadbeef.
This seems to demonstrate the opposite of what is stated (that the instances are not the same).
zardosht
Metadata
Metadata
Assignees
Labels
status: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarificationtype: infrastructureimprovement to development/releases/CI structureimprovement to development/releases/CI structure