diff --git a/wand/image.py b/wand/image.py index 389ef460..9f2c506a 100644 --- a/wand/image.py +++ b/wand/image.py @@ -2206,7 +2206,6 @@ def seed(self, value): if library.MagickSetSeed is None: msg = 'Property requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover assertions.assert_unsigned_integer(seed=value) self._seed = value library.MagickSetSeed(self.wand, value) @@ -2734,7 +2733,6 @@ def auto_threshold(self, method='kapur'): if library.MagickAutoThresholdImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover assertions.string_in_list(AUTO_THRESHOLD_METHODS, 'wand.image.AUTO_THRESHOLD_METHODS', method=method) @@ -2911,7 +2909,6 @@ def canny(self, radius=0.0, sigma=1.0, lower_percent=0.1, if library.MagickCannyEdgeImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover assertions.assert_real(radius=radius, sigma=sigma, lower_percent=lower_percent, upper_percent=upper_percent) @@ -3388,7 +3385,6 @@ def complex(self, operator='undefined', snr=None): if library.MagickComplexImages is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover assertions.string_in_list(COMPLEX_OPERATORS, 'wand.image.COMPLEX_OPERATORS', operator=operator) @@ -4578,7 +4574,6 @@ def hough_lines(self, width, height=None, threshold=40): if library.MagickHoughLineImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover if height is None: height = width assertions.assert_unsigned_integer(width=width, height=height, @@ -4818,7 +4813,6 @@ def kuwahara(self, radius=1.0, sigma=None): if library.MagickKuwaharaImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover if sigma is None: sigma = radius - 0.5 assertions.assert_real(radius=radius, sigma=sigma) @@ -4917,7 +4911,6 @@ def levelize(self, black=0.0, white=None, gamma=1.0, channel=None): if library.MagickLevelizeImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover if white is None: white = float(self.quantum_range) assertions.assert_real(black=black, white=white, gamma=gamma) @@ -5074,7 +5067,6 @@ def mean_shift(self, width, height, color_distance=0.1): if library.MagickMeanShiftImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover assertions.assert_counting_number(width=width, height=height) assertions.assert_real(color_distance=color_distance) if 0 < color_distance <= 1.0: @@ -5659,7 +5651,6 @@ def polynomial(self, arguments): if library.MagickPolynomialImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover if not isinstance(arguments, abc.Sequence): raise TypeError('expected sequence of doubles, not ' + repr(arguments)) @@ -5816,7 +5807,6 @@ def range_threshold(self, low_black=0.0, low_white=None, high_white=None, if library.MagickRangeThresholdImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover # Populate defaults to follow CLI behavior if low_white is None: low_white = low_black @@ -7285,7 +7275,6 @@ def wavelet_denoise(self, threshold=0.0, softness=0.0): if library.MagickWaveletDenoiseImage is None: msg = 'Method requires ImageMagick version 7.0.8-41 or greater.' raise WandLibraryVersionError(msg) - # pragma: no cover assertions.assert_real(threshold=threshold, softness=softness) if 0.0 < threshold <= 1.0: threshold *= self.quantum_range