mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-07 06:44:00 +08:00
Fixes to get the tests passing for 3.10
This commit is contained in:
@@ -188,11 +188,15 @@ def test_functions_should_have_params(Script):
|
||||
assert c.get_signatures()
|
||||
|
||||
|
||||
def test_hashlib_params(Script):
|
||||
def test_hashlib_params(Script, environment):
|
||||
script = Script('from hashlib import sha256')
|
||||
c, = script.complete()
|
||||
sig, = c.get_signatures()
|
||||
assert [p.name for p in sig.params] == ['data', 'usedforsecurity', 'string']
|
||||
if environment.version_info >= (3, 13):
|
||||
wanted = ['data', 'usedforsecurity', 'string']
|
||||
else:
|
||||
wanted = ['string', 'usedforsecurity']
|
||||
assert [p.name for p in sig.params] == wanted
|
||||
|
||||
|
||||
def test_signature_params(Script):
|
||||
|
||||
Reference in New Issue
Block a user