void () { runPythonTest(new PyUnitTestProcessWithConsoleTestTask("testRunner/env/unit/subtestError", "test_assert_test.py") { @NotNull @Override protected PyUnitTestProcessRunner createProcessRunner() { return new PyUnitTestProcessRunner(toFullPath(getMyScriptName()), 0); } @Override protected void checkTestResults(@NotNull final PyUnitTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { var printer = MockPrinter.fillPrinter(runner.findTestByName("[test]")); assertThat(printer.getStdErr()) .describedAs("Subtest assertEquals broken") .contains("AssertionError: 'D' != 'a'"); } }); }