Skip to content

Commit

Permalink
Improve coverage of "colour" module.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Sep 8, 2021
1 parent ae82fe7 commit 3154431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colour/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
import colour.plotting as plotting # noqa
else:

class MockPlotting:
class MockPlotting: # pragma: no cover
"""
Mock object for :mod:`colour.plotting` sub-package raising an exception
if the sub-package is accessed but *Matplotlib* is not installed.
Expand All @@ -189,7 +189,7 @@ class MockPlotting:
def __getattr__(self, attribute):
is_matplotlib_installed(raise_exception=True)

globals()['plotting'] = MockPlotting()
globals()['plotting'] = MockPlotting() # pragma: no cover

__author__ = 'Colour Developers'
__copyright__ = 'Copyright (C) 2013-2021 - Colour Developers'
Expand Down

0 comments on commit 3154431

Please sign in to comment.