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.
2 parents 5afa871 + 409ffce commit 0b78983Copy full SHA for 0b78983
src/_pytest/mark/evaluate.py
@@ -38,8 +38,6 @@ def __bool__(self):
38
# don't cache here to prevent staleness
39
return bool(self._get_marks())
40
41
- __nonzero__ = __bool__
42
-
43
def wasvalid(self):
44
return not hasattr(self, "exc")
45
testing/test_assertrewrite.py
@@ -640,10 +640,10 @@ def f():
640
641
assert getmsg(f) == "assert 5 <= 4"
642
643
- def test_assert_raising_nonzero_in_comparison(self):
+ def test_assert_raising__bool__in_comparison(self):
644
def f():
645
class A:
646
- def __nonzero__(self):
+ def __bool__(self):
647
raise ValueError(42)
648
649
def __lt__(self, other):
0 commit comments