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.
1 parent e7a623e commit 1f2e5d6Copy full SHA for 1f2e5d6
tests/test_class.py
@@ -403,8 +403,9 @@ class PyDog(m.Dog):
403
pytest.gc_collect()
404
refcount_3 = refcount_immortal(cls)
405
406
+ # Python may report a large value here (above 30 bits), that's also fine
407
assert refcount_1 == refcount_3
- assert (refcount_2 > refcount_1) or (refcount_2 == refcount_1 == UINT32MAX)
408
+ assert (refcount_2 > refcount_1) or (refcount_2 == refcount_1 and refcount_1 >= 2**29)
409
410
411
def test_reentrant_implicit_conversion_failure(msg):
0 commit comments