diff --git a/python/testData/inspections/UnresolvedRefCreateFunction.py b/python/testData/inspections/UnresolvedRefCreateFunction.py new file mode 100644 index 000000000000..aea8443bca14 --- /dev/null +++ b/python/testData/inspections/UnresolvedRefCreateFunction.py @@ -0,0 +1 @@ +ref \ No newline at end of file diff --git a/python/testData/inspections/UnresolvedRefCreateFunction_after.py b/python/testData/inspections/UnresolvedRefCreateFunction_after.py new file mode 100644 index 000000000000..220da55cc19c --- /dev/null +++ b/python/testData/inspections/UnresolvedRefCreateFunction_after.py @@ -0,0 +1,4 @@ +def ref(): + pass + +ref \ No newline at end of file diff --git a/python/testSrc/com/jetbrains/python/PyQuickFixTest.java b/python/testSrc/com/jetbrains/python/PyQuickFixTest.java index cc4630ca513b..bc9f47b6e55c 100644 --- a/python/testSrc/com/jetbrains/python/PyQuickFixTest.java +++ b/python/testSrc/com/jetbrains/python/PyQuickFixTest.java @@ -200,6 +200,10 @@ public class PyQuickFixTest extends PyLightFixtureTestCase { PyBundle.message("QFIX.unresolved.reference.add.future"), true, true); } + public void testUnresolvedRefCreateFunction() { // PY-2092 + doInspectionTest("UnresolvedRefCreateFunction.py", PyUnresolvedReferencesInspection.class, + PyBundle.message("QFIX.unresolved.reference.create.function"), true, true); + } @Override @NonNls protected String getTestDataPath() {