Commit Graph

2169 Commits

Author SHA1 Message Date
ColinDuquesnoy
f808dbbd28 Change sys.path for the test to succeed.
Tested locally with a python3 extension module (in
/extensions/compiled33).

Also tested that reverting a75773cf9f make
the test fail.
2014-02-18 22:14:43 +01:00
ColinDuquesnoy
7977d57169 Add test_compiled
Should pass on travis since there is no precompiled modules yet
2014-02-18 20:31:06 +01:00
ColinDuquesnoy
5a706265bc Move dummy pyc to dummy package 2014-02-18 19:18:17 +01:00
ColinDuquesnoy
ea43efc9d8 Fix pyc test for python3
To import pyc modules, we must move them out of the __pycache__
directory and rename them to remove ".cpython-%s%d".

This should still faild with python3 (UnicodeDecodeError)
2014-02-18 19:00:55 +01:00
ColinDuquesnoy
d80caa7108 Add test pyc
Should succeed for python2 and faild for python3
2014-02-18 17:36:01 +01:00
Dave Halter
040ea2b735 fix a few annoyances to be quicker to develop now (disabled a few tests for now) 2014-02-13 15:40:51 +01:00
Dave Halter
6939e3e18f moved test_get_code to test_parser 2014-02-12 11:33:46 +01:00
Dave Halter
2f3e4152b4 Merge branch 'get_code_fidelity' of git://github.com/ganwell/jedi into ganwell 2014-02-12 11:09:08 +01:00
Dave Halter
32ccec8447 precedence stuff is not working yet, but need to merge first because of potential parser changes 2014-02-12 11:08:48 +01:00
Dave Halter
cd1660dc53 first succeeding precedence tests 2014-01-31 11:12:28 +01:00
Dave Halter
62a74a6d2f tests for understanding operations 2014-01-30 11:27:03 +01:00
Dave Halter
8660555d7b moved api, parser and evaluate test directories to test_api, test_parser... 2014-01-29 21:16:18 +01:00
Dave Halter
021aae365d move more test files to specific directories 2014-01-29 20:50:09 +01:00
Dave Halter
78114b12e9 move some tests into specific directories 2014-01-29 20:43:42 +01:00
Dave Halter
2175416684 removed keyword docstring functionality for goto_definitions - will be reintroduced with a Script.documentation function 2014-01-28 22:27:26 +01:00
Jean-Louis Fuchs
34e89fa1c5 Merge branch 'dev' into get_code_fidelity
Conflicts:
	jedi/evaluate/docstrings.py
	jedi/parser/representation.py

Resolving merge problems:
* Introducing docstring for compiled.fake
* Partly fixing poor decision in TokenDocstring __init__
2014-01-28 00:37:06 +01:00
Dave Halter
18f225200a test for dynamic params/usages case 2014-01-26 23:13:46 +01:00
Dave Halter
441c001bf9 test for not working call signatures with whitespace issues 2014-01-24 01:34:13 +01:00
Dave Halter
e587b876b6 tests and improvements for __next__ and send generator methods 2014-01-23 20:02:36 +01:00
Dave Halter
6f2c1397b0 autocompletion diggs now pretty deep for generator objects 2014-01-23 14:39:00 +01:00
Dave Halter
c6b315aa2e failing test for fucked up generator parents 2014-01-23 14:26:04 +01:00
Dave Halter
c8fffbd7b6 fix python2.6 issues with completing colorama. this happened because of a missing object parent class 2014-01-22 17:14:28 +01:00
Dave Halter
a6abab4ef0 that test again... 2014-01-17 03:07:04 +01:00
Dave Halter
6063093151 test fixing 2014-01-17 02:53:30 +01:00
Dave Halter
8b34e120e0 for loops are now parsed even if they are really faulty and don't end. 2014-01-17 01:39:23 +01:00
Dave Halter
99882724da is_py3k -> is_py3 2014-01-14 11:43:56 +01:00
Dave Halter
a6e49f2680 compatibility improvements -> use reduce from functools 2014-01-14 11:31:01 +01:00
Dave Halter
b70ea1b9f6 fix a version_info testcase - testcase was broken 2014-01-13 22:17:12 +01:00
Dave Halter
7dff41c6b7 added a utils.version_info function to make it easy to check Jedi's version. #350 2014-01-13 21:40:16 +01:00
Dave Halter
cdd356ff9b removed pr.String and pr.Number in favor of the more general pr.Literal 2014-01-13 16:47:01 +01:00
Dave Halter
83b490dd6d PyObject -> CompiledObject, PyName -> CompiledName 2014-01-13 14:09:03 +01:00
Dave Halter
4b319ad817 fix a docstr issue 2014-01-12 19:22:31 +01:00
Dave Halter
dfb494b9c4 finally able to delete the old builtin stuff 2014-01-12 18:22:33 +01:00
Dave Halter
c75cef0882 fix some python 3 compatibility things (which involves some real bugs, but py2 was passing) 2014-01-12 17:02:26 +01:00
Dave Halter
bd239446f5 fix call signatures 2014-01-12 02:42:00 +01:00
Dave Halter
0bff729294 lots of small bugfixes 2014-01-12 02:15:59 +01:00
Dave Halter
1765fadf73 fix problems with self attributes - from fake modules 2014-01-11 18:05:44 +01:00
Dave Halter
32e39ef4ca fixing parents in compiled 2014-01-11 00:26:53 +01:00
Dave Halter
01c03966a7 make first faked compiled modules work 2014-01-10 23:35:58 +01:00
Dave Halter
14c9ed88ca fixed the getattr/__getattr__ stuff 2014-01-10 15:14:55 +01:00
Dave Halter
f868668f0e trying to fix the getattr mess with compiled 2014-01-10 13:36:29 +01:00
Dave Halter
3017e72b86 first executions with compiled seem to be working 2014-01-09 00:53:50 +01:00
Dave Halter
d71fe3061b better environment for compiled executions 2014-01-08 02:20:41 +01:00
Dave Halter
70413768ef add a 'compiled' module, to finally solve #102 and #335 2014-01-07 18:45:02 +01:00
Dave Halter
6deac1dc41 api is now a separate package, to structure the whole thing better. 2014-01-07 15:33:24 +01:00
Dave Halter
090536d03c fix by disabling test - usages are tainted crap anyway :) 2014-01-06 23:41:40 +01:00
Dave Halter
5857b4dbc9 moved modules.py -> parser/user_context.py 2014-01-05 14:15:11 +01:00
Dave Halter
1b40414d90 skip the strange add additional_modules test for now 2014-01-05 01:53:51 +01:00
Dave Halter
4d7349411e probably finished the load_module method migration 2014-01-05 01:37:54 +01:00
Dave Halter
4af92b166a use expression_list instead of commands or call_list 2013-12-27 14:24:14 +01:00