Skip to content

Commit 8c6fc2a

Browse files
committed
Update error assertions in test_552_windows_hang to check for expected exceptions
Signed-off-by: DanielAvdar <66269169+DanielAvdar@users.noreply.github.com>
1 parent 90f2cc1 commit 8c6fc2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/issues/test_552_windows_hang.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ async def test_windows_process_creation():
4141
except ProcessLookupError:
4242
pytest.xfail("Process creation failed with ProcessLookupError")
4343
except Exception as e:
44-
assert "ExceptionGroup" not in str(e), f"Unexpected error: {e}"
45-
assert "ProcessLookupError" not in str(e), f"Unexpected error: {e}"
44+
assert "ExceptionGroup" in repr(e), f"Unexpected error: {e}"
45+
assert "ProcessLookupError" in repr(e), f"Unexpected error: {e}"
4646
pytest.xfail(f"Expected error: {e}")

0 commit comments

Comments
 (0)