File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,7 @@ def test_getattr(self):
133
133
134
134
def test_iteration (self ):
135
135
coll = self .db .coll
136
- if _IS_SYNC :
137
- msg = "'Collection' object is not iterable"
138
- else :
139
- msg = "'AsyncCollection' object is not iterable"
136
+ msg = "'AsyncCollection' object is not iterable"
140
137
# Iteration fails
141
138
with self .assertRaisesRegex (TypeError , msg ):
142
139
for _ in coll : # type: ignore[misc] # error: "None" not callable [misc]
Original file line number Diff line number Diff line change @@ -133,10 +133,7 @@ def test_getattr(self):
133
133
134
134
def test_iteration (self ):
135
135
coll = self .db .coll
136
- if _IS_SYNC :
137
- msg = "'Collection' object is not iterable"
138
- else :
139
- msg = "'Collection' object is not iterable"
136
+ msg = "'Collection' object is not iterable"
140
137
# Iteration fails
141
138
with self .assertRaisesRegex (TypeError , msg ):
142
139
for _ in coll : # type: ignore[misc] # error: "None" not callable [misc]
You can’t perform that action at this time.
0 commit comments