Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:ARM:Rings:1-MinimalX
python-Pygments
skip-wcag-contrast-ratio.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skip-wcag-contrast-ratio.patch of Package python-Pygments
--- tests/contrast/test_contrasts.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- a/tests/contrast/test_contrasts.py +++ b/tests/contrast/test_contrasts.py @@ -14,7 +14,11 @@ import os import pygments.styles import pygments.token -import wcag_contrast_ratio +try: + import wcag_contrast_ratio +except ImportError: + wcag_contrast_ratio = None +import unittest JSON_FILENAME = os.path.join(os.path.dirname(__file__), "min_contrasts.json") WCAG_AA_CONTRAST = 4.5 @@ -67,6 +71,8 @@ def update_json(): ) +@unittest.skipIf(wcag_contrast_ratio is None, + "wcag-contrast-ratio has not been installed") def test_contrasts(fail_if_improved=True): with open(JSON_FILENAME, encoding="utf-8") as f: previous_contrasts = json.load(f)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor