From 73c7a09cb94aac746ce6fd0072fad536696d3db5 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 28 May 2021 20:07:06 +0300 Subject: [PATCH] Skip test_sqlthread in python3; place noqa globally for flake8 and on each import to suppress pycodestyle warnings. --- src/tests/test_sqlthread.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/tests/test_sqlthread.py b/src/tests/test_sqlthread.py index 5da4a0ca..a612df3a 100644 --- a/src/tests/test_sqlthread.py +++ b/src/tests/test_sqlthread.py @@ -1,15 +1,20 @@ """Tests for SQL thread""" - +# flake8: noqa:E402 import os import tempfile import threading import unittest -os.environ['BITMESSAGE_HOME'] = tempfile.gettempdir() # noqa:E402 +from .common import skip_python3 -from pybitmessage.helper_sql import sqlQuery, sql_ready, sqlStoredProcedure -from pybitmessage.class_sqlThread import sqlThread -from pybitmessage.addresses import encodeAddress +skip_python3() + +os.environ['BITMESSAGE_HOME'] = tempfile.gettempdir() + +from pybitmessage.helper_sql import ( + sqlQuery, sql_ready, sqlStoredProcedure) # noqa:E402 +from pybitmessage.class_sqlThread import sqlThread # noqa:E402 +from pybitmessage.addresses import encodeAddress # noqa:E402 class TestSqlThread(unittest.TestCase):