Skip to content

Commit

Permalink
MAINT: Getting rid of Flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
greglucas committed Aug 30, 2020
1 parent e3ddde7 commit 16b560e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/cartopy/tests/mpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# licensing details.

import base64
import contextlib
import distutils
import os
import glob
Expand Down Expand Up @@ -148,7 +147,6 @@ def run_figure_comparisons(self, figures, test_name):
self.save_figure(figure, result_path)
self.do_compare(result_path, expected_path, self.tolerance)


def save_figure(self, figure, result_fname):
"""
The actual call which saves the figure.
Expand Down
3 changes: 2 additions & 1 deletion lib/cartopy/tests/mpl/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def test_geoaxes_subplot():
@ImageTesting(['geoaxes_subslice'])
def test_geoaxes_no_subslice():
"""Test that we do not trigger matplotlib's line subslice optimization."""
# This behavior caused lines with > 1000 points and sorted data to disappear
# This behavior caused lines with > 1000 points and
# sorted data to disappear

fig, axes = plt.subplots(1, 2, subplot_kw={'projection': ccrs.Mercator()})
for ax, num_points in zip(axes, [1000, 1001]):
Expand Down
2 changes: 1 addition & 1 deletion lib/cartopy/tests/mpl/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pytest

import cartopy.crs as ccrs
from cartopy.tests.mpl import MPL_VERSION, ImageTesting
from cartopy.tests.mpl import ImageTesting


class ExampleImageTesting(ImageTesting):
Expand Down
1 change: 0 additions & 1 deletion lib/cartopy/tests/mpl/test_pseudo_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import matplotlib.pyplot as plt
import numpy as np
import pytest

import cartopy.crs as ccrs

Expand Down

0 comments on commit 16b560e

Please sign in to comment.