Remove Duplicated Dependencies and PEP 517 Support (#2173)
* Remove duplicated dependencies * Specify setuptools as the tool for generating distribution (PEP 517) * Add `isort` to `dev_require` * manage all dependencies in setup.py * Execute `make pretty` * Set usedevelop to true (revert previous change)
This commit is contained in:
@@ -13,7 +13,7 @@ from sanic.exceptions import PyFileError
|
||||
|
||||
@contextmanager
|
||||
def temp_path():
|
||||
""" a simple cross platform replacement for NamedTemporaryFile """
|
||||
"""a simple cross platform replacement for NamedTemporaryFile"""
|
||||
with TemporaryDirectory() as td:
|
||||
yield Path(td, "file")
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ def test_logging_pass_customer_logconfig():
|
||||
),
|
||||
)
|
||||
def test_log_connection_lost(app, debug, monkeypatch):
|
||||
""" Should not log Connection lost exception on non debug """
|
||||
"""Should not log Connection lost exception on non debug"""
|
||||
stream = StringIO()
|
||||
error = logging.getLogger("sanic.error")
|
||||
error.addHandler(logging.StreamHandler(stream))
|
||||
|
||||
Reference in New Issue
Block a user