Skip to content

Commit 09950c6

Browse files
committed
chore: remove unnecessary polyfills for aiter/anext in tests
1 parent 10db3bd commit 09950c6

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

packages/google-api-core/tests/asyncio/test_bidi_async.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import sys
15+
1616
import asyncio
1717

1818
from unittest import mock
@@ -33,15 +33,6 @@
3333
from google.api_core import bidi_async
3434
from google.api_core import exceptions
3535

36-
# TODO: remove this when droppping support for "Python 3.10" and below.
37-
if sys.version_info <= (3, 10): # type: ignore[operator]
38-
39-
def aiter(obj):
40-
return obj.__aiter__()
41-
42-
async def anext(obj):
43-
return await obj.__anext__()
44-
4536

4637
@pytest.mark.asyncio
4738
class Test_AsyncRequestQueueGenerator:

0 commit comments

Comments
 (0)