mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix pytest issues with this branch
This commit is contained in:
@@ -4,7 +4,7 @@ addopts = --doctest-modules
|
||||
# Ignore broken files in blackbox test directories
|
||||
norecursedirs = .* docs completion refactor absolute_import namespace_package
|
||||
scripts extensions speed static_analysis not_in_sys_path
|
||||
sample_venvs init_extension_module simple_import jedi/typeshed
|
||||
sample_venvs init_extension_module simple_import jedi/third_party
|
||||
|
||||
# Activate `clean_jedi_cache` fixture for all tests. This should be
|
||||
# fine as long as we are using `clean_jedi_cache` as a session scoped
|
||||
|
||||
@@ -4,10 +4,10 @@ import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize('source', [
|
||||
'1 == 1',
|
||||
'1.0 == 1',
|
||||
pytest.param('1 == 1'),
|
||||
pytest.param('1.0 == 1'),
|
||||
# Unfortunately for now not possible, because it's a typeshed object.
|
||||
pytest.mark.xfail('... == ...')
|
||||
pytest.param('... == ...', marks=pytest.mark.xfail),
|
||||
])
|
||||
def test_equals(Script, environment, source):
|
||||
if environment.version_info.major < 3:
|
||||
|
||||
Reference in New Issue
Block a user