From 56e29158fe5174a5b06d0a58090da7fb4624ed60 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 28 Jul 2018 11:18:40 -0700 Subject: [PATCH] Don't run black test on Python 3.7 It breaks on that version - see https://github.com/ambv/black/issues/425 But that's OK, we only need it to run onder one version anyway. --- tests/test_black.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_black.py b/tests/test_black.py index 7015107..e4b1b01 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -1,10 +1,16 @@ import black from click.testing import CliRunner from pathlib import Path +import pytest +import sys code_root = Path(__file__).parent.parent +@pytest.mark.skipif( + sys.version_info[:2] > (3, 6), + reason="Breaks on 3.7 at the moment, but it only needs to run under one Python version", +) def test_black(): runner = CliRunner() result = runner.invoke(