diff --git a/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt b/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt index 223e45bacdfb..6a56d99c1242 100644 --- a/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt +++ b/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt @@ -825,6 +825,7 @@ class ModuleBridgesTest { } fun catchLog(): String { + val prev = System.out return try { val outCatcher = OutCatcher(System.out) System.setOut(outCatcher) @@ -832,7 +833,7 @@ class ModuleBridgesTest { outCatcher.catcher } finally { - System.setOut(System.out) + System.setOut(prev) } } }