Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Python properties on test classes are executed during test collection #2234
A test suite with a test file such as the following fails during test collection:
class TestIt: @property def prop(self): raise NotImplementedError()
I expect the property (or other types of custom descriptors) to not be executed during collection.
For comparison, unittest, from which I am migrating, does not execute properties (unless the tests use them of course).