mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix another Windows test on 3.8
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -7,8 +7,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04, windows-2019]
|
os: [ubuntu-20.04, windows-2019]
|
||||||
environment: ['3.8', '3.9', '3.7', '3.6', 'interpreter']
|
|
||||||
python-version: [3.6, 3.7, 3.8, 3.9]
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
|
environment: ['3.8', '3.9', '3.7', '3.6', 'interpreter']
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|||||||
@@ -13,17 +13,15 @@ def test_completions(Script):
|
|||||||
assert len(s.complete()) >= 15
|
assert len(s.complete()) >= 15
|
||||||
|
|
||||||
|
|
||||||
def test_get_signatures_extension(Script):
|
def test_get_signatures_extension(Script, environment):
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
func = 'LoadLibrary'
|
func = 'LoadLibrary'
|
||||||
params = 1
|
|
||||||
else:
|
else:
|
||||||
func = 'dlopen'
|
func = 'dlopen'
|
||||||
params = 2
|
|
||||||
s = Script('import _ctypes; _ctypes.%s(' % (func,))
|
s = Script('import _ctypes; _ctypes.%s(' % (func,))
|
||||||
sigs = s.get_signatures()
|
sigs = s.get_signatures()
|
||||||
assert len(sigs) == 1
|
assert len(sigs) == 1
|
||||||
assert len(sigs[0].params) == params
|
assert len(sigs[0].params) in (1, 2)
|
||||||
|
|
||||||
|
|
||||||
def test_get_signatures_stdlib(Script):
|
def test_get_signatures_stdlib(Script):
|
||||||
|
|||||||
Reference in New Issue
Block a user