void () { runPythonTest(new PyDebuggerTask("/debug", "test_warnings_suppressing.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 15); } @Override public void testing() throws Exception { waitForPause(); List<PyDebugValue> frameVariables = loadFrame(); PyDebugValue obj = findDebugValueByName(frameVariables, "obj"); loadVariable(obj); String out = output(); assertTrue(out.contains("This warning should appear in the output.")); assertFalse(out.contains("This property is deprecated!")); resume(); waitForOutput("This property is deprecated!"); } @NotNull @Override public Set<String> getTags() { return Collections.singleton("-iron"); // PY-37793 } }); }