From 92dccd0751fe3522095ab2eecb76efc696fb84d4 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Tue, 7 Sep 2021 14:02:34 -0500 Subject: Only use and install `mslex` on Windows (#36) * Fix lint issues where encoding was not specified * Only use and install mslex on Windows * Escape backslash in test_windows * Alter Windows CI name Since we actually have some tests other than the path sanity test, it probably makes sense to just call it a Windows test now. * Disable pylint issue with mslex import It's raising an unable to import issue with that line, which makes sense since mslex wouldn't be installed on any other platform other than Windows, but it also wouldn't be run on any other platform so it seems to be a non issue. Co-authored-by: Eugene Triguba --- tests/test_taskipy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_taskipy.py') diff --git a/tests/test_taskipy.py b/tests/test_taskipy.py index 84b767a..1598f0f 100644 --- a/tests/test_taskipy.py +++ b/tests/test_taskipy.py @@ -76,7 +76,7 @@ class RunTaskTestCase(TaskipyTestCase): cwd = self.create_test_dir_from_fixture('project_with_pyproject_and_tasks') self.run_task('create_hello_txt', cwd=cwd) - with open(path.join(cwd, 'hello.txt'), 'r') as f: + with open(path.join(cwd, 'hello.txt'), 'r', encoding='utf-8') as f: hello_file_contents = f.readline().strip() self.assertEqual(hello_file_contents, 'hello, world') -- cgit v1.2.3