Get rid of deprecations in tests

This commit is contained in:
Dave Halter
2020-03-21 02:07:53 +01:00
parent 4c964ae655
commit d6d9286242
10 changed files with 40 additions and 27 deletions

View File

@@ -74,9 +74,3 @@ def test_wrong_encoding(Script, tmpdir):
project = Project('.', sys_path=[tmpdir.strpath])
c, = Script('import x; x.foo', project=project).complete()
assert c.name == 'foobar'
def test_encoding_parameter(Script):
name = u('')
s = Script(name.encode('latin-1'), encoding='latin-1')
assert s._module_node.get_code() == name