Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我从 PyDev 运行 PyUnit 时,我的一些存根方法会打印消息并导致 Eclipse 切换到控制台选项卡。有没有办法阻止这种情况,以便在所有测试运行后显示 PyUnit?
既然您说您的 PyUnit 输出切换到输出选项卡,那么我假设您在 PyUnit 窗口和控制台上都有输出。为了确保 PyUnit 窗口保持显示,您需要转到 Eclipse 中的控制台窗口并取消选中“标准输出更改时显示控制台”和“标准错误更改时显示控制台”的图标。这对我使用 Eclipse 4.2.2 有效。我怀疑它也可以在早期版本中使用。