From 865572a78a4429af9ea311ffd378748caf6b3900 Mon Sep 17 00:00:00 2001 From: Robert Luttrell Date: Wed, 13 Dec 2023 15:36:03 -0800 Subject: [PATCH] Test pragma statement --- pyproject.toml | 2 ++ src/openjd/adaptor_runtime/_background/frontend_runner.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0b90b7c..c4e2bcd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -145,6 +145,8 @@ source = [ ] [tool.coverage.coverage_conditional_plugin.rules] +is-windows = "sys_platform == 'win32'" +is-posix = "sys_platform != 'win32'" [tool.coverage.report] show_missing = true diff --git a/src/openjd/adaptor_runtime/_background/frontend_runner.py b/src/openjd/adaptor_runtime/_background/frontend_runner.py index 554a6ad..667f19b 100644 --- a/src/openjd/adaptor_runtime/_background/frontend_runner.py +++ b/src/openjd/adaptor_runtime/_background/frontend_runner.py @@ -231,7 +231,7 @@ def _send_request( params: dict | None = None, json_body: dict | None = None, ) -> http_client.HTTPResponse | Dict: - if OSName.is_windows(): + if OSName.is_windows(): # pragma: is-posix return NamedPipeHelper.send_named_pipe_request( self.connection_settings.socket, self._timeout_s,