]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Silence incorrect pylint warnings for hypothesis.assume()
authorNicki Křížek <nicki@isc.org>
Wed, 31 Dec 2025 09:53:23 +0000 (10:53 +0100)
committerNicki Křížek <nicki@isc.org>
Wed, 21 Jan 2026 15:07:31 +0000 (16:07 +0100)
With hypothesis>6.148.3, pylint generates

W0101: Unreachable code (unreachable)

when any code is present after hypothesis.assume(). Silence these until
it is fixed upstream.

See https://github.com/pylint-dev/pylint/issues/10785#issuecomment-3677224217

bin/tests/system/nsec3-answer/tests_nsec3.py
bin/tests/system/synthrecord/tests_synthrecord.py
bin/tests/system/tsig/tests_tsig_hypothesis.py
bin/tests/system/wildcard/tests_wildcard.py

index c3ca0f645f72057c7fcc5ddf105511c783919c98..ebd0ea66233d35d57d3c4cabbecb86550c001ca4 100755 (executable)
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+# Silence incorrect warnings cause by hypothesis.assume()
+# https://github.com/pylint-dev/pylint/issues/10785#issuecomment-3677224217
+# pylint: disable=unreachable
+
 from dataclasses import dataclass
 import os
 from pathlib import Path
index a34d42f470cf4d131fc61ee35a290b5d3288482a..6159542943e6fcc499b88f7c42ee578254675d44 100644 (file)
@@ -8,6 +8,11 @@
 #
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
+
+# Silence incorrect warnings cause by hypothesis.assume()
+# https://github.com/pylint-dev/pylint/issues/10785#issuecomment-3677224217
+# pylint: disable=unreachable
+
 import glob
 import os
 import subprocess
index 791077ac35c5a82720a8a6e8bbdbe082c42099c2..e26373b2207dbb1551c6b9e2416289837fd80751 100644 (file)
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+# Silence incorrect warnings cause by hypothesis.assume()
+# https://github.com/pylint-dev/pylint/issues/10785#issuecomment-3677224217
+# pylint: disable=unreachable
+
 import time
 
 import pytest
index b086fc0d136ccd117553e563017244d27639cc5d..60d75384f03d998a1c05a99576a7f5e38ae16f1c 100755 (executable)
@@ -27,6 +27,10 @@ Limitations - untested properties:
     - special behavior of rdtypes like CNAME
 """
 
+# Silence incorrect warnings cause by hypothesis.assume()
+# https://github.com/pylint-dev/pylint/issues/10785#issuecomment-3677224217
+# pylint: disable=unreachable
+
 import pytest
 
 import dns