Get rid of deprecations in tests

This commit is contained in:
Dave Halter committed 2020-03-21 02:15:57 +01:00
1 parent 4c964ae655
commit d6d9286242
10 files changed
+40 -27

No files matched your search

+1 -1
View File
@@ -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']