diff --git a/trio/tests/test_threads.py b/trio/tests/test_threads.py index 632ce13656..a9059fef79 100644 --- a/trio/tests/test_threads.py +++ b/trio/tests/test_threads.py @@ -270,7 +270,8 @@ async def child(): # Make sure we don't have a "Exception in thread ..." dump to the console: out, err = capfd.readouterr() - assert not out and not err + assert "Exception in thread" not in out + assert "Exception in thread" not in err @pytest.mark.parametrize("MAX", [3, 5, 10])