Hugo
cc623218e5
Replace function call with set literal
2018-01-07 10:40:06 +02:00
Hugo
5755fcb900
Replace comparison with None with equality operator
2018-01-07 10:40:06 +02:00
Hugo
8cf708d0d4
Remove redundant parentheses
2018-01-07 10:40:06 +02:00
Hugo
7c31ea9042
Drop support for EOL Python 2.6
2018-01-07 10:40:05 +02:00
Dave Halter
db47686159
Correct the issue about has_zlib
...
It was never actually the case that travis has Python versions without zlib. I didn't realize that modifying the sys path made it impossible to import the zlib library.
2018-01-06 03:34:37 +01:00
Dave Halter
e42796ca10
Move the zip tests to the environment
2018-01-06 02:26:30 +01:00
Dave Halter
99eed91206
Only execute the zipimport tests fully if zlib is available for the environment Python.
2018-01-06 02:11:33 +01:00
Dave Halter
db1a4415b3
Some tests that involved jedi were actually a bit wrong and only worked in certain environments.
2018-01-05 00:48:40 +01:00
Dave Halter
4d896892a3
Skip some 3.3 tests for travis
...
Python 3.3 on travis doesn't have zip support compiled.
Just ignore tests since 3.3 is End-of-Life anyway.
2018-01-04 01:46:07 +01:00
Dave Halter
3d39ffd16c
Skipping was done wrong
2018-01-03 19:45:46 +01:00
Maxim Novikov
a2031d89b1
Fix tests
2018-01-02 18:24:38 +01:00
Maxim Novikov
78cbad0d08
Fix implicit namespace autocompletion. Resolves : #959
2018-01-02 18:17:48 +01:00
Dave Halter
9c5ce5a8d2
Try to use the virtual env that was defined in the VIRTUAL_ENV variable, if possible.
2018-01-02 01:28:02 +01:00
Dave Halter
bcb3f02a01
If a subprocess gets killed by an OOM killer or whatever it should respawn and raise an InternalError
2018-01-02 00:56:22 +01:00
Dave Halter
7ff6871548
Merge Subprocess and CompiledSubprocess
2018-01-02 00:33:30 +01:00
Dave Halter
927aa2bd91
Try to recover from errors that are happening in subprocesses
2018-01-02 00:24:15 +01:00
Dave Halter
b901ab9b0d
Some refactoring to finally get tests working with py27 and 3 environments
2017-12-30 05:01:50 +01:00
Dave Halter
4514373de6
Use unicode strings in test to pass some tests in Python 2
2017-12-30 04:36:59 +01:00
Dave Halter
a14f665b5a
Use Script everywhere where cwd_at is used, otherwise Python 2.7 is annoying
2017-12-30 03:55:23 +01:00
Dave Halter
f17afc6519
Try to avoid the pth tests not working because of the created virtualenv in tox
2017-12-30 03:15:28 +01:00
Dave Halter
e2629b680f
Test if virtualenvs and pth files work
2017-12-30 00:02:14 +01:00
Dave Halter
7de04fb28d
Move the module name searching to the subprocess
2017-12-29 21:10:00 +01:00
Dave Halter
68381e09c9
Move the last test out of test_regressions and delete the file
...
This also deletes a test that probably has become useful because the issue it tested was caused by code that doesn't exist anymore
2017-12-29 20:38:30 +01:00
Dave Halter
01ffd2f981
Move most of the regression tests into other test files
2017-12-29 20:26:53 +01:00
Dave Halter
918153d55a
Cleanup test_regression tests
2017-12-29 20:13:04 +01:00
Dave Halter
ff4f7d5471
Move test_integration_keywrod to test_api/test_keyword
2017-12-29 20:05:37 +01:00
Dave Halter
c7266d65c1
Cleanup the docstring tests
2017-12-29 19:47:28 +01:00
Dave Halter
bf73fcbed4
More test_evaluate Script fixtures
2017-12-29 19:36:05 +01:00
Dave Halter
5fc755b0cf
stdlib fixture conversions
2017-12-29 19:13:15 +01:00
Dave Halter
ac21fc376e
More Script fixture conversions in test_evaluate
2017-12-29 19:08:09 +01:00
Dave Halter
2493e6ea16
Migrate parso integration to script fixture
2017-12-29 18:47:13 +01:00
Dave Halter
181fe38c17
Use Script in more places
2017-12-29 18:43:10 +01:00
Dave Halter
da211aa63d
Use the Script fixture more generally
2017-12-29 18:40:17 +01:00
Dave Halter
38cacba385
Differentiate between different Python versions in a specific test
2017-12-29 16:09:48 +01:00
Dave Halter
5efd67758e
Start replacing Script calls with a fixture
...
This is important to migrate all tests to specific fixtures.
2017-12-29 15:51:16 +01:00
Dave Halter
4b72a89379
There were a few bugs in the previous commit
2017-12-28 23:25:09 +01:00
Dave Halter
9906c4f9fc
Skip the correct tests
2017-12-28 22:03:02 +01:00
Dave Halter
e925661aff
Skip tests according to the current environment
2017-12-26 15:07:57 +01:00
Dave Halter
a117f9f2e7
Avoid execution of Jedi in test setup
...
This makes testing Jedi potentially faster.
2017-12-24 03:25:43 +01:00
Dave Halter
7ad37fb976
Skip more tests if it's necessary.
2017-12-23 19:56:47 +01:00
Dave Halter
723d6515ac
Change two tests that were written in a strange way
2017-12-20 10:36:39 +01:00
Dave Halter
a96f2c43df
Add a way to skip typing tests in non default environments
2017-12-20 10:07:16 +01:00
Dave Halter
96a67f9a4c
Start using the correct parser for each environment
2017-12-19 19:19:35 +01:00
Dave Halter
a9ebd92c20
Add a way to specify environments in tox
2017-12-19 19:02:57 +01:00
Dave Halter
5f2b49d039
Merge branch 'master' into virtualenv
2017-12-18 01:41:29 +01:00
Dave Halter
1c62db04ba
Make it possible to get the right version parser for a certain environment
2017-12-16 00:30:47 +01:00
Dave Halter
d0732e58cc
api.virtualenv -> api.environment
2017-12-15 18:20:35 +01:00
Dave Halter
0d7f93c019
DefaultEnvironment -> get_default_environment
2017-12-15 18:13:21 +01:00
Dave Halter
3cd5fa3c20
Better support for searching python environments
2017-12-15 12:19:52 +01:00
Daniel Hahler
e621e8590c
Improve IntegrationTestCase.__repr__
...
Having the path (together with the line only) makes it easy to go to the
actual test.
2017-12-14 22:44:24 +01:00