Skip test_sqlthread in python3; place noqa globally for flake8
and on each import to suppress pycodestyle warnings.
This commit is contained in:
parent
199b8c8ea5
commit
73c7a09cb9
|
@ -1,15 +1,20 @@
|
||||||
"""Tests for SQL thread"""
|
"""Tests for SQL thread"""
|
||||||
|
# flake8: noqa:E402
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import threading
|
import threading
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
os.environ['BITMESSAGE_HOME'] = tempfile.gettempdir() # noqa:E402
|
from .common import skip_python3
|
||||||
|
|
||||||
from pybitmessage.helper_sql import sqlQuery, sql_ready, sqlStoredProcedure
|
skip_python3()
|
||||||
from pybitmessage.class_sqlThread import sqlThread
|
|
||||||
from pybitmessage.addresses import encodeAddress
|
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):
|
class TestSqlThread(unittest.TestCase):
|
||||||
|
|
Reference in New Issue
Block a user