[Pydev-cvs] org.python.pydev/tests_completions/org/python/pydev/editor/codecompletion PythonComple
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-05-04 16:49:26
|
Update of /cvsroot/pydev/org.python.pydev/tests_completions/org/python/pydev/editor/codecompletion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29846/tests_completions/org/python/pydev/editor/codecompletion Modified Files: PythonCompletionWithBuiltinsTest.java Log Message: Fixed recursion while completing in numpy situation where compiled file needed a later reference to a source. Index: PythonCompletionWithBuiltinsTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests_completions/org/python/pydev/editor/codecompletion/PythonCompletionWithBuiltinsTest.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** PythonCompletionWithBuiltinsTest.java 2 May 2008 13:42:01 -0000 1.12 --- PythonCompletionWithBuiltinsTest.java 4 May 2008 16:49:31 -0000 1.13 *************** *** 28,32 **** PythonCompletionWithBuiltinsTest builtins = new PythonCompletionWithBuiltinsTest(); builtins.setUp(); ! builtins.testInstanceCompletion(); builtins.tearDown(); --- 28,32 ---- PythonCompletionWithBuiltinsTest builtins = new PythonCompletionWithBuiltinsTest(); builtins.setUp(); ! builtins.testNumpy(); builtins.tearDown(); *************** *** 51,55 **** CompiledModule.COMPILED_MODULES_ENABLED = true; this.restorePythonPath(TestDependent.GetCompletePythonLib(true)+"|"+ ! TestDependent.PYTHON_WXPYTHON_PACKAGES+"|"+TestDependent.PYTHON_MX_PACKAGES, false); codeCompletion = new PyCodeCompletion(); --- 51,57 ---- CompiledModule.COMPILED_MODULES_ENABLED = true; this.restorePythonPath(TestDependent.GetCompletePythonLib(true)+"|"+ ! TestDependent.PYTHON_WXPYTHON_PACKAGES+"|"+ ! TestDependent.PYTHON_MX_PACKAGES+"|"+ ! TestDependent.PYTHON_NUMPY_PACKAGES, false); codeCompletion = new PyCodeCompletion(); *************** *** 158,161 **** --- 160,174 ---- } + + public void testNumpy() throws BadLocationException, IOException, Exception{ + if(TestDependent.HAS_NUMPY_INSTALLED){ + String s = ""+ + "from numpy import less\n"+ + "less."; + requestCompl(new File(TestDependent.TEST_PYSRC_LOC+"extendable/not_existent.py"), + s, s.length(), -1, new String[]{"types", "ntypes", "nout", "nargs", "nin"}); + } + } + public void testDeepNested6() throws CoreException, BadLocationException{ String s; |