skip py36

This commit is contained in:
Will McGugan 2020-09-07 16:54:17 +01:00
parent 795f1c929b
commit 702215c65f
1 changed files with 8 additions and 0 deletions

View File

@ -1,10 +1,17 @@
import io
import sys
import pytest
from rich import inspect
from rich.console import Console
skip_py36 = pytest.mark.skipif(
sys.version_info <= (3, 6), reason="rendered differently on py3.6"
)
class InspectError(Exception):
def __str__(self) -> str:
return "INSPECT ERROR"
@ -35,6 +42,7 @@ class Foo:
return ["__init__", "broken", "method"]
@skip_py36
def test_render():
console = Console(width=100, file=io.StringIO(), legacy_windows=False)