Skip to content

Commit 0b66b99

Browse files
committed
Fix test on Windows with Python 3.14
1 parent 4314561 commit 0b66b99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/plugins/test_flake8_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_flake8_config_param(workspace) -> None:
126126
with patch("pylsp.plugins.flake8_lint.Popen") as popen_mock:
127127
mock_instance = popen_mock.return_value
128128
mock_instance.communicate.return_value = [b"", b""]
129-
flake8_conf = "/tmp/some.cfg"
129+
flake8_conf = "C:\\some.cfg" if os.name == "nt" else "/tmp/some.cfg"
130130
workspace._config.update({"plugins": {"flake8": {"config": flake8_conf}}})
131131
_name, doc = temp_document(DOC, workspace)
132132
flake8_lint.pylsp_lint(workspace, doc)

0 commit comments

Comments
 (0)