diff --git a/tests/test_fact_getters.py b/tests/test_fact_getters.py index c59e29d..b6fa4e7 100644 --- a/tests/test_fact_getters.py +++ b/tests/test_fact_getters.py @@ -30,7 +30,8 @@ def test_a_missing_license_may_say_what_the_device_withholds_without_it(): # A Supermicro X10 with only SFT-OOB-LIC answers Redfish but keeps its drives and # firmware inventory until DCMS is activated: partly licensed, not unlicensed. hints = get_type_hints(LicenseDict) - assert hints["withholds"] == list[str] or str(hints["withholds"]).endswith("List[str]") + # Python 3.10 keeps NotRequired[...] around the type; later versions strip it. + assert "List[str]" in str(hints["withholds"]) assert "withholds" not in LicenseDict.__required_keys__