mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-27 06:02:07 +08:00
Get rid of deprecations in tests
This commit is contained in:
@@ -193,7 +193,7 @@ def test_hashlib_params(Script, environment):
|
||||
if environment.version_info < (3,):
|
||||
pytest.skip()
|
||||
|
||||
script = Script(source='from hashlib import sha256')
|
||||
script = Script('from hashlib import sha256')
|
||||
c, = script.complete()
|
||||
sig, = c.get_signatures()
|
||||
assert [p.name for p in sig.params] == ['arg']
|
||||
|
||||
Reference in New Issue
Block a user