]> 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:34:50 +0000 (16:34 +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

(cherry picked from commit 08630ca744a05bacba7eb187274507e64121c965)

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

index da74a599ffdd50e88706a2a729f15a031a123032..72d065e7d5a6c397b431261922e4835bb910487b 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 3a1c05d1d1114a253a6785bf3490c1d75b9a5593..3e134d5bb077f3b239fde1223c97c58c0786da58 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