summaryrefslogtreecommitdiff
path: root/test/perf/invalidate_stresstest.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-01-06 01:14:26 -0500
committermike bayer <mike_mp@zzzcomputing.com>2019-01-06 17:34:50 +0000
commit1e1a38e7801f410f244e4bbb44ec795ae152e04e (patch)
tree28e725c5c8188bd0cfd133d1e268dbca9b524978 /test/perf/invalidate_stresstest.py
parent404e69426b05a82d905cbb3ad33adafccddb00dd (diff)
downloadsqlalchemy-1e1a38e7801f410f244e4bbb44ec795ae152e04e.tar.gz
Run black -l 79 against all source files
This is a straight reformat run using black as is, with no edits applied at all. The black run will format code consistently, however in some cases that are prevalent in SQLAlchemy code it produces too-long lines. The too-long lines will be resolved in the following commit that will resolve all remaining flake8 issues including shadowed builtins, long lines, import order, unused imports, duplicate imports, and docstring issues. Change-Id: I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9
Diffstat (limited to 'test/perf/invalidate_stresstest.py')
-rw-r--r--test/perf/invalidate_stresstest.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/perf/invalidate_stresstest.py b/test/perf/invalidate_stresstest.py
index cbf20e18b..29fbbb118 100644
--- a/test/perf/invalidate_stresstest.py
+++ b/test/perf/invalidate_stresstest.py
@@ -1,9 +1,11 @@
from __future__ import print_function
import gevent.monkey
+
gevent.monkey.patch_all() # noqa
import logging
+
logging.basicConfig() # noqa
# logging.getLogger("sqlalchemy.pool").setLevel(logging.INFO)
from sqlalchemy import event
@@ -12,8 +14,9 @@ import sys
from sqlalchemy import create_engine
import traceback
-engine = create_engine('mysql+pymysql://scott:tiger@localhost/test',
- pool_size=50, max_overflow=0)
+engine = create_engine(
+ "mysql+pymysql://scott:tiger@localhost/test", pool_size=50, max_overflow=0
+)
@event.listens_for(engine, "connect")
@@ -32,10 +35,10 @@ def worker():
except Exception:
# traceback.print_exc()
- sys.stderr.write('X')
+ sys.stderr.write("X")
else:
conn.close()
- sys.stderr.write('.')
+ sys.stderr.write(".")
def main():