Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Jan 12, 2023
1 parent fdcd8c4 commit 7ac6935
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 17 deletions.
1 change: 0 additions & 1 deletion obspy/clients/fdsn/tests/test_mass_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,6 @@ def test_excluding_networks_and_stations(self, testdata):
c.get_availability()
assert sorted(c.stations.keys()) == expected


# When 'channel' or 'location' are set they should override
# 'channel_priorities' and 'location_priorities'. If this isn't
# happening this test will fail, as we're requesting data
Expand Down
1 change: 0 additions & 1 deletion obspy/clients/filesystem/tests/test_sds.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import inspect
import os
import re
import shutil
Expand Down
1 change: 0 additions & 1 deletion obspy/core/tests/test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
GNU Lesser General Public License, Version 3
(https://www.gnu.org/copyleft/lesser.html)
"""
import os
import warnings
from math import pi

Expand Down
2 changes: 0 additions & 2 deletions obspy/core/tests/test_util_misc.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-
import inspect
import sys
import tempfile
import warnings
from pathlib import Path
from unittest import mock

import pytest
Expand Down
1 change: 0 additions & 1 deletion obspy/imaging/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""
The obspy.imaging.scripts.plot / obspy-plot test suite.
"""
import os
import shutil
from pathlib import Path

Expand Down
1 change: 0 additions & 1 deletion obspy/io/css/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
The obspy.io.css.core test suite.
"""
import gzip
import os

import numpy as np

Expand Down
2 changes: 0 additions & 2 deletions obspy/io/gcf/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"""
The obspy.io.gcf.core test suite.
"""
import os

import numpy as np
import pytest

Expand Down
1 change: 0 additions & 1 deletion obspy/io/kinemetrics/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
The obspy.io.kinemetrics.core test suite.
"""
import io
import os

import numpy as np

Expand Down
3 changes: 2 additions & 1 deletion obspy/io/mseed/tests/test_mseed_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,8 @@ def test_set_flags_in_fixed_header_with_blockette_100(self, testdata):
assert flags['glitches'] == 2
assert flags['suspect_time_tag'] == 2

def test_regression_segfault_when_hooking_up_libmseeds_logging(self, testdata):
def test_regression_segfault_when_hooking_up_libmseeds_logging(
self, testdata):
filename = testdata['wrong_blockette_numbers_specified.mseed']
# Read it once - that hooks up the logging.
with warnings.catch_warnings(record=True) as w:
Expand Down
1 change: 0 additions & 1 deletion obspy/io/nied/tests/test_fnetmt_reading.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import os
import io

from obspy.core.event import read_events
Expand Down
1 change: 0 additions & 1 deletion obspy/io/pde/tests/test_mchedr.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import os
import warnings

import pytest
Expand Down
1 change: 0 additions & 1 deletion obspy/io/xseed/tests/test_blockettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io
import sys
import warnings
from glob import iglob

from lxml import etree

Expand Down
4 changes: 2 additions & 2 deletions obspy/io/xseed/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ def test_warning_with_multiple_blockettes_58_in_stage_0(self, testdata):
with CatchAndAssertWarnings(expected=[(Warning, msg)]):
obspy.read_inventory(filename)

def test_warning_with_multiple_differing_blockettes_58_in_stage_0(self,
testdata):
def test_warning_with_multiple_differing_blockettes_58_in_stage_0(
self, testdata):
filename = testdata["RESP.repeated_differing_stage_0"]
msg = (r"Epoch BN.WR0..SHZ "
r"\[1996-03-01T00:00:00.000000Z - "
Expand Down
1 change: 0 additions & 1 deletion obspy/signal/tests/test_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
The obspy.signal.trigger test suite.
"""
import gzip
import os
import warnings
from ctypes import ArgumentError

Expand Down

0 comments on commit 7ac6935

Please sign in to comment.