Group :: Development/Python3
RPM: python3-module-Pygments
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: python3-module-Pygments-2.15.1-alt.patch
Download
Download
tests/contrast/test_contrasts.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/contrast/test_contrasts.py b/tests/contrast/test_contrasts.py
index f43d2c0f..a608b653 100644
--- a/tests/contrast/test_contrasts.py
+++ b/tests/contrast/test_contrasts.py
@@ -12,9 +12,12 @@
import json
import os
+import pytest
+
import pygments.styles
import pygments.token
-import wcag_contrast_ratio
+
+wcag_contrast_ratio = pytest.importorskip("wcag_contrast_ratio")
JSON_FILENAME = os.path.join(os.path.dirname(__file__), "min_contrasts.json")
WCAG_AA_CONTRAST = 4.5