From 44d77523b387e008a6d228c9641df95cb08233dc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 10 Jan 2021 16:31:37 +0100 Subject: [PATCH] Fix a test that depended on correct cwd location an dnot having an x.py in a local directory --- test/test_api/test_unicode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_api/test_unicode.py b/test/test_api/test_unicode.py index 54a11eb5..722adb21 100644 --- a/test/test_api/test_unicode.py +++ b/test/test_api/test_unicode.py @@ -64,6 +64,6 @@ def test_wrong_encoding(Script, tmpdir): # Use both latin-1 and utf-8 (a really broken file). x.write_binary('foobar = 1\nä'.encode('latin-1') + 'ä'.encode('utf-8')) - project = Project('.', sys_path=[tmpdir.strpath]) + project = Project(tmpdir.strpath) c, = Script('import x; x.foo', project=project).complete() assert c.name == 'foobar'