From 473ebbf9f36e29492ea4fab7fa5b73835084fbfd 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..0c1cd97 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-windows return NamedPipeHelper.send_named_pipe_request( self.connection_settings.socket, self._timeout_s,