-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
pytest 4.2.0 vs unittest.skip and setUpClass inheritance #4700
Copy link
Copy link
Closed
Labels
topic: fixturesanything involving fixtures directly or indirectlyanything involving fixtures directly or indirectlytype: bugproblem that needs to be addressedproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously
Metadata
Metadata
Assignees
Labels
topic: fixturesanything involving fixtures directly or indirectlyanything involving fixtures directly or indirectlytype: bugproblem that needs to be addressedproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously
Type
Fields
Give feedbackNo fields configured for issues without a type.
With pytest 4.2.0, there is a change of behaviour regarding
unittestclasses usingunittest.skipdecorator. Classes that were completely skipped before now run inheritedsetUpClassbefore skipping the test class.This only happens with inherited
setUpClass, not withsetUpClassdefined directly in the test class.pip listof the virtual environment you are usingplatform linux -- Python 3.5.3, pytest-4.2.0, py-1.7.0, pluggy-0.8.1This example test is skipped with pytest 4.1.1 and raises an error with pytest 4.2.0: