Skip to content

Commit ed92777

Browse files
committed
Update/patch failing sed test-asserts
1 parent 031e62e commit ed92777

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_usb.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,11 +1940,12 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
19401940
assert not test_sed.cache_enabled
19411941

19421942
# Validate SED properties raise exception when node is not yet loaded
1943-
with pytest.raises(pw_exceptions.NodeError):
1944-
assert test_sed.battery_config is not None
1943+
# 2025-07-26: no NodeError raised anymore because the SED node is always loaded now.
1944+
#with pytest.raises(pw_exceptions.NodeError):
1945+
assert test_sed.battery_config is not None
19451946

1946-
with pytest.raises(pw_exceptions.NodeError):
1947-
assert test_sed.battery_config is not None
1947+
#with pytest.raises(pw_exceptions.NodeError):
1948+
# assert test_sed.battery_config is not None
19481949

19491950
with pytest.raises(pw_exceptions.NodeError):
19501951
assert await test_sed.set_maintenance_interval(10)

0 commit comments

Comments
 (0)