File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
src/scout_apm/instruments
tests/integration/instruments Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1616# The async_ module can only be shipped on Python 3.6+
1717try :
1818 from scout_apm .async_ .instruments .aioredis import (
19- wrapped_redis_execute ,
2019 wrapped_pipeline_execute ,
20+ wrapped_redis_execute ,
2121 )
2222except ImportError :
2323 wrapped_redis_execute = None
@@ -38,7 +38,8 @@ def ensure_installed():
3838 logger .debug ("Couldn't import aioredis.Redis - probably not installed." )
3939 elif wrapped_redis_execute is None :
4040 logger .debug (
41- "Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6."
41+ "Couldn't import scout_apm.async_.instruments.aioredis -"
42+ + " probably using Python < 3.6."
4243 )
4344 elif not have_patched_redis_execute :
4445 try :
@@ -58,7 +59,8 @@ def ensure_installed():
5859 )
5960 elif wrapped_pipeline_execute is None :
6061 logger .debug (
61- "Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6."
62+ "Couldn't import scout_apm.async_.instruments.aioredis -"
63+ + " probably using Python < 3.6."
6264 )
6365 elif not have_patched_pipeline_execute :
6466 try :
Original file line number Diff line number Diff line change @@ -77,7 +77,10 @@ def test_ensure_installed_fail_no_wrapped_redis_execute(caplog):
7777 assert caplog .record_tuples [1 ] == (
7878 "scout_apm.instruments.aioredis" ,
7979 logging .DEBUG ,
80- "Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6." ,
80+ (
81+ "Couldn't import scout_apm.async_.instruments.aioredis - probably"
82+ + " using Python < 3.6."
83+ ),
8184 )
8285
8386
@@ -124,7 +127,10 @@ def test_ensure_installed_fail_no_wrapped_pipeline_execute(caplog):
124127 assert caplog .record_tuples [1 ] == (
125128 "scout_apm.instruments.aioredis" ,
126129 logging .DEBUG ,
127- "Couldn't import scout_apm.async_.instruments.aioredis - probably using Python < 3.6." ,
130+ (
131+ "Couldn't import scout_apm.async_.instruments.aioredis -"
132+ + " probably using Python < 3.6."
133+ ),
128134 )
129135
130136
You can’t perform that action at this time.
0 commit comments