Commit a4c38a60 authored by Chris Lamb's avatar Chris Lamb 💬

test_icc: Calculate the path to a test .icc file using data() rather than...

test_icc: Calculate the path to a test .icc file using data() rather than using the pytest fixture to avoid a "Fixtures are not meant to be called directly" warning/error. (Closes: #916226)
parent f2939f3c
Pipeline #28192 failed with stage
in 12 minutes and 25 seconds
......@@ -24,7 +24,7 @@ from diffoscope.config import Config
from diffoscope.comparators.icc import IccFile
from diffoscope.comparators.missing_file import MissingFile
from ..utils.data import load_fixture, get_data
from ..utils.data import load_fixture, get_data, data
from ..utils.tools import skip_unless_tools_exist, skip_unless_tool_is_at_least
......@@ -50,7 +50,7 @@ def cd_iccdump_version():
somewhat-arbitrary newline too.
"""
val = subprocess.check_output(('cd-iccdump', icc1().path)).decode('utf-8')
val = subprocess.check_output(('cd-iccdump', data('test1.icc'))).decode('utf-8')
for x in val.splitlines():
if x.startswith(' Profile ID') and len(x) == 47:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment