From d89c29200b64488369e83338d483da5d06548d70 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 13 Feb 2021 19:14:56 +0000 Subject: [PATCH] skip tests on windows --- tests/test_console.py | 3 ++- tests/test_layout.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_console.py b/tests/test_console.py index 8a3f6d66..7eadddbf 100644 --- a/tests/test_console.py +++ b/tests/test_console.py @@ -494,8 +494,9 @@ def test_no_nested_live(): pass +@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows") def test_screen(): - console = Console(force_terminal=True, force_interactive=True) + console = Console(color_system=None, force_terminal=True, force_interactive=True) with console.capture() as capture: with console.screen(): console.print("Don't panic") diff --git a/tests/test_layout.py b/tests/test_layout.py index e8b49fb2..3d82b03a 100644 --- a/tests/test_layout.py +++ b/tests/test_layout.py @@ -1,3 +1,4 @@ +import sys import pytest from rich.console import Console @@ -5,6 +6,7 @@ from rich.layout import Layout from rich.panel import Panel +@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows") def test_render(): layout = Layout(name="root") repr(layout)