File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,11 @@ async def _test_ops(
70
70
else :
71
71
if iscoroutinefunction (coll .create_index ):
72
72
await coll .create_index ("a" )
73
- maybe_cursor = await h (* args , ** kwargs )
74
73
else :
75
74
coll .create_index ("a" )
75
+ if iscoroutinefunction (h ):
76
+ maybe_cursor = await h (* args , ** kwargs )
77
+ else :
76
78
maybe_cursor = h (* args , ** kwargs )
77
79
self .assertIn (
78
80
"comment" ,
Original file line number Diff line number Diff line change @@ -70,9 +70,11 @@ def _test_ops(
70
70
else :
71
71
if iscoroutinefunction (coll .create_index ):
72
72
coll .create_index ("a" )
73
- maybe_cursor = h (* args , ** kwargs )
74
73
else :
75
74
coll .create_index ("a" )
75
+ if iscoroutinefunction (h ):
76
+ maybe_cursor = h (* args , ** kwargs )
77
+ else :
76
78
maybe_cursor = h (* args , ** kwargs )
77
79
self .assertIn (
78
80
"comment" ,
You can’t perform that action at this time.
0 commit comments