diff --git a/test_mccabe.py b/test_mccabe.py index 4ddce38..6e76394 100644 --- a/test_mccabe.py +++ b/test_mccabe.py @@ -10,7 +10,10 @@ try: import hypothesmith from hypothesis import HealthCheck, given, settings, strategies as st -except ImportError: +except Exception: + # Optional dep: missing package (ImportError) or unusable on this + # interpreter (e.g. AttributeError: typing.ByteString removed in 3.14 + # while an older hypothesmith/hypothesis is installed). See #113. hypothesmith = None import mccabe