We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pytest-harvest
1 parent cb78f43 commit e18b43dCopy full SHA for e18b43d
pytest_cases/common_pytest_lazy_values.py
@@ -62,10 +62,13 @@ def get(self):
62
"""Return the value to use by pytest"""
63
raise NotImplementedError()
64
65
- if not pytest53:
66
- def __str__(self):
67
- """in pytest<5.3 we inherit from int so that str(v) is called by pytest _idmaker to get the id"""
68
- return self.get_id()
+ def __str__(self):
+ """in pytest<5.3 we inherit from int so that str(v) is called by pytest _idmaker to get the id
+
+ In later pytest this is extremely convenient to have this string representation
69
+ for example to use in pytest-harvest results tables, so we still keep it.
70
+ """
71
+ return self.get_id()
72
73
@property
74
def __name__(self):
0 commit comments