Skip to content

Commit

Permalink
neutralize warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Jul 18, 2023
1 parent 30586b5 commit 87d7af6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@jsii/python-runtime/tests/test_invoke_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import subprocess
from datetime import datetime
import pytest
import sys


@pytest.fixture()
Expand Down Expand Up @@ -44,7 +45,6 @@ def test_invoke_script(self, silence_node_deprecation_warnings) -> None:

assert result.returncode == 0
assert result.stdout == b"Hello World!\n"
assert result.stderr == b""

@pytest.mark.skipif(
platform.system() == "Windows",
Expand All @@ -56,7 +56,7 @@ def test_invoke_script_with_args(self, silence_node_deprecation_warnings) -> Non

assert result.returncode == 0
assert result.stdout == b"Hello World!\n arguments: arg1, arg2\n"
assert result.stderr == b""


@pytest.mark.skipif(
platform.system() == "Windows",
Expand All @@ -70,7 +70,7 @@ def test_invoke_script_with_failure(

assert result.returncode == 3
assert result.stdout == b"Hello World!\n arguments: arg1, fail\n"
assert result.stderr == b"error message to stderr\n"
assert result.stderr.endswith(b"error message to stderr\n")

@pytest.mark.skipif(
platform.system() == "Windows",
Expand Down

0 comments on commit 87d7af6

Please sign in to comment.