From b6113e344ffc6b47e420fdab24da98b729b11127 Mon Sep 17 00:00:00 2001 From: Koudai Aono Date: Wed, 14 Feb 2024 02:57:31 +0900 Subject: [PATCH] skip unsupported unittest --- tests/test_main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_main.py b/tests/test_main.py index 806f7c0d5..dfdd2f628 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -6242,6 +6242,10 @@ def test_main_all_of_ref_self(): @freeze_time('2019-07-26') +@pytest.mark.skipif( + black.__version__.split('.')[0] == '19', + reason="Installed black doesn't support the old style", +) def test_main_array_field_constraints(): with TemporaryDirectory() as output_dir: output_file: Path = Path(output_dir) / 'output.py'