Skip to content

Commit cfa4015

Browse files
author
aviau
committed
flake8 fixes
1 parent cd8a2ce commit cfa4015

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

tests/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
using_pypy = hasattr(sys, "pypy_version_info")
77
skipIfPYpy = unittest.skipIf(using_pypy, "Skipping this test on pypy.")
88

9-
_skip_server_tests = os.environ.get('INFLUXDB_PYTHON_SKIP_SERVER_TESTS', None) == 'True'
10-
skipServerTests = unittest.skipIf(_skip_server_tests, "Skipping server tests...")
9+
_skip_server_tests = os.environ.get(
10+
'INFLUXDB_PYTHON_SKIP_SERVER_TESTS',
11+
None) == 'True'
12+
skipServerTests = unittest.skipIf(_skip_server_tests,
13+
"Skipping server tests...")

tests/influxdb/server_tests/client_test_with_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def point(serie_name, timestamp=None, tags=None, **fields):
113113
}
114114
]
115115

116+
116117
@skipServerTests
117118
class SimpleTests(SingleTestCaseWithServerMixin,
118119
unittest.TestCase):

tests/influxdb/server_tests/influxdb_instance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def __init__(self,
2626

2727
self.influxd_path = self.find_influxd_path()
2828

29-
3029
# create a temporary dir to store all needed files
3130
# for the influxdb server instance :
3231
self.temp_dir_base = tempfile.mkdtemp()
@@ -150,4 +149,4 @@ def close(self, remove_tree=True):
150149
self.proc.terminate()
151150
self.proc.wait()
152151
if remove_tree:
153-
shutil.rmtree(self.temp_dir_base)
152+
shutil.rmtree(self.temp_dir_base)

0 commit comments

Comments
 (0)