Dave Halter
2be5da3f85
Fix some old regression tests.
2016-12-07 01:30:30 +01:00
ColinDuquesnoy
600a087446
Merge branch 'dev' into bugfix/performances_degradation
...
# Conflicts:
# test/test_regression.py
2016-07-30 16:52:17 +02:00
Dave Halter
454c8de7b1
Merge pull request #726 from nakamuray/fix-source_to_unicode_py3_compatibility
...
fix source_to_unicode py3 compatibility
2016-07-30 03:15:04 +02:00
ColinDuquesnoy
07f76a1703
Merge remote-tracking branch 'upstream/dev' into bugfix/performances_degradation
...
# Conflicts:
# jedi/evaluate/compiled/fake.py
2016-07-21 10:41:11 +02:00
Dave Halter
27f05de3b7
Fix a few more issues, mostly with the fast parser.
2016-06-13 18:21:17 +02:00
NAKAMURA Yoshitaka
127da66ae2
fix source_to_unicode py3 compatibility
2016-05-30 23:31:18 +09:00
Dave Halter
c4906e0e3f
Rework the parser so we can use arbitrary start nodes of the syntax.
...
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
ColinDuquesnoy
9a25d55953
Add regression test for issue #591
...
See #649
2015-12-13 20:08:48 +01:00
immerrr
4eb3cf7921
Improve virtualenv support & egg-link resolution
...
- add sys_path= kwarg to Script & Evaluator constructors
- store sys_path for each evaluator instance
- replace get_sys_path with get_venv_path
- get_venv_path: use addsitedir to load .pth extension files
- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter
26ecb16e5f
CompiledObject.type resembles now the Node.type values.
2015-01-09 01:33:59 +01:00
Dave Halter
d8067a7286
Small test corrections.
2014-12-11 04:44:27 +01:00
Dave Halter
3cf8bfa8e1
Fix a few tests by either fixing the test cases or adding py__bool__ functions to objects that should have such a method.
2014-08-20 17:28:54 +02:00
Dave Halter
8bde89cc58
Fix the remaining issues with the StatementElement.next refactoring.
2014-08-19 00:12:14 +02:00
Akinori Hattori
1eeb5677fa
update pytest to latest stable
2014-07-17 18:35:31 +09:00
Jorgen Schaefer
9ed0dc4861
Always load source files in binary mode.
...
Source files can be in any coding system, provided Python can
read a coding: line at the beginning of the file. So source files
should be loaded in binary format and decoded according to that
line, not assumed to be in the default coding system.
Fixes #398 .
2014-04-24 11:10:59 +02:00
Dave Halter
2252271bf5
fix unicode issues with python2.7
2014-02-25 12:54:06 +01:00
Dave Halter
8e847f4982
fix python 2.7 issues. the parser now only takes unicode inputs
2014-02-23 11:44:32 +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
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
Dave Halter
08fba1e191
fix last remaining issues with tests
2013-12-27 02:28:01 +01:00
David Halter
9eca33f55c
final import renamings for the new parser package
2013-09-06 01:27:07 +04:30
David Halter
f12e7f66c4
remove unused argument from calls to set_debug_function
2013-08-16 14:06:53 +04:30
David Halter
fbcecaf1ef
deprecate 'source_path' as a Script parameter in favour of 'path'
2013-08-15 19:25:19 +04:30
David Halter
7f53bd71fe
fix encoding problems in python2 for travis
2013-08-08 00:26:47 +04:30
David Halter
7ab00242a8
finally change name of test.base module to helpers.py, fixes #181
2013-08-07 18:35:47 +04:30
David Halter
45432c6cb0
documentation and clean up, #181
2013-08-07 18:27:25 +04:30
David Halter
04e454269c
add test_integration_keyword.py to test keywords (moved out of test_regression), #181
2013-08-07 18:12:37 +04:30
David Halter
e114c662f9
use jedi.Script.method instead of stupid self calls in tests
2013-08-07 18:00:45 +04:30
David Halter
74edb9e08e
test_regression should not be executable
2013-08-07 17:49:52 +04:30
David Halter
297ad635b6
moved more methods out of regression tests, created test_unicode.py, #181
2013-08-07 17:48:57 +04:30
David Halter
4e75cda7f6
moved more methods out of regression tests, created integration_import and jedi_system, #181
2013-08-07 17:41:22 +04:30
David Halter
686e29c2f2
move cache test to the right file, #181
2013-08-07 17:25:47 +04:30
David Halter
0b3a623c8d
add a separate jedi system testing file, which helps e.g. if imports are correctly used, #181
2013-08-07 17:20:02 +04:30
David Halter
a7584cfa04
add a separate api testing file, #181
2013-08-07 17:15:36 +04:30
David Halter
5c39b4596c
add a separate docstring testing file, #181
2013-08-07 17:10:41 +04:30
David Halter
31e0b89791
add a separate speed testing file, #181
2013-08-07 17:06:24 +04:30
David Halter
6ed33d7c8d
remove interpreter test from test_regression
2013-08-07 17:00:46 +04:30
David Halter
d1383965aa
refactor call signature tests, use own file (incomplete)
2013-08-07 14:54:42 +04:30
David Halter
2ea2a8c6cd
filter all non executables when used with call_signatures, fixes #240
2013-08-07 14:36:35 +04:30
David Halter
1a8227aeec
changed no duplicate modules test to respect attributes with the same name as their module
2013-08-06 13:52:25 +04:30
David Halter
0dc3106569
add keyword_names method to keyword module (includes test), fixes #248
2013-08-06 10:55:05 +04:30
David Halter
cef58f89a8
generator problem test
2013-08-01 10:23:22 +02:00
David Halter
1ed94060df
fix another position problem with the reverse tokenizer. includes tests.
2013-07-28 21:19:17 +02:00
David Halter
6017daded5
removed statement docstr stuff for now. it will be reintroduced when using the evaluator class
2013-07-19 13:17:27 +02:00
David Halter
b6e9f16a01
fix a completion problem on docstrings
2013-07-17 16:48:50 +02:00
Takafumi Arakaki
71455f6b31
Add another failing case
2013-05-24 22:05:12 +02:00
Takafumi Arakaki
105bb2b1ca
ModuleWithCursor.get_path_until_cursor cannot handle "\"
...
It raises: IndexError: string index out of range
2013-05-24 19:43:23 +02:00