diff options
Diffstat (limited to 'python/testSrc/com/jetbrains/python/PyCommenterTest.java')
-rw-r--r-- | python/testSrc/com/jetbrains/python/PyCommenterTest.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/python/testSrc/com/jetbrains/python/PyCommenterTest.java b/python/testSrc/com/jetbrains/python/PyCommenterTest.java index 651311e4fde9..1ce9202101ac 100644 --- a/python/testSrc/com/jetbrains/python/PyCommenterTest.java +++ b/python/testSrc/com/jetbrains/python/PyCommenterTest.java @@ -15,8 +15,6 @@ */ package com.jetbrains.python; -import com.intellij.codeInsight.actions.CodeInsightAction; -import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.actionSystem.IdeActions; import com.jetbrains.python.fixtures.PyTestCase; @@ -34,9 +32,7 @@ public class PyCommenterTest extends PyTestCase { private void doTest() { myFixture.configureByFile("commenter/" + getTestName(true) + ".py"); - CodeInsightAction action = (CodeInsightAction) ActionManager.getInstance().getAction(IdeActions.ACTION_COMMENT_LINE); - action.actionPerformedImpl(myFixture.getFile().getProject(), myFixture.getEditor()); + myFixture.performEditorAction(IdeActions.ACTION_COMMENT_LINE); myFixture.checkResultByFile("commenter/" + getTestName(true) + "_after.py", true); - } } |