Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 19, 2024
1 parent 65c545d commit a8356ac
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions colour/io/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ def test_write_image_OpenImageIO(self): # pragma: no cover
np.testing.assert_equal(np.squeeze(RGB), image)

source_path = os.path.join(ROOT_RESOURCES, "CMS_Test_Pattern.exr")
target_path = os.path.join(
self._temporary_directory, "CMS_Test_Pattern.exr"
)
target_path = os.path.join(self._temporary_directory, "CMS_Test_Pattern.exr")
image = read_image_OpenImageIO(source_path)
write_image_OpenImageIO(image, target_path)
image = read_image_OpenImageIO(target_path)
Expand Down Expand Up @@ -513,9 +511,7 @@ def test_write_image_Imageio(self):
np.testing.assert_equal(np.squeeze(RGB), image)

source_path = os.path.join(ROOT_RESOURCES, "CMS_Test_Pattern.exr")
target_path = os.path.join(
self._temporary_directory, "CMS_Test_Pattern.exr"
)
target_path = os.path.join(self._temporary_directory, "CMS_Test_Pattern.exr")
image = read_image_Imageio(source_path)
write_image_Imageio(image, target_path)
image = read_image_Imageio(target_path)
Expand Down Expand Up @@ -571,9 +567,7 @@ def test_write_image(self):
"""Test :func:`colour.io.image.write_image` definition."""

source_path = os.path.join(ROOT_RESOURCES, "CMS_Test_Pattern.exr")
target_path = os.path.join(
self._temporary_directory, "CMS_Test_Pattern.exr"
)
target_path = os.path.join(self._temporary_directory, "CMS_Test_Pattern.exr")
image = read_image(source_path)
write_image(image, target_path)
image = read_image(target_path)
Expand Down

0 comments on commit a8356ac

Please sign in to comment.