void () { runPythonTest(new PyUnitTestProcessWithConsoleTestTask("testRunner/env/unit/skipInSetup", "test_test.py") { @Override protected void checkTestResults(@NotNull final PyUnitTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertEquals("Output tree broken for skipped exception thrown in setup method", """ Test tree: [root](~) .test_test(~) ..TestSimple(~) ...setUpClass(~) ..TestSubSimple(~) ...setUpClass(~) """, runner.getFormattedTestTree()); } }); }