mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix imports from collections.abc
This commit is contained in:
parent
bd475115c4
commit
57d1a887e7
7 changed files with 22 additions and 20 deletions
|
@ -4,7 +4,7 @@ import textwrap
|
|||
import unittest
|
||||
import functools
|
||||
import contextlib
|
||||
import collections
|
||||
import collections.abc
|
||||
from test import support
|
||||
from nntplib import NNTP, GroupInfo, _have_ssl
|
||||
import nntplib
|
||||
|
@ -246,7 +246,7 @@ class NetworkedNNTPTestsMixin:
|
|||
if not name.startswith('test_'):
|
||||
continue
|
||||
meth = getattr(cls, name)
|
||||
if not isinstance(meth, collections.Callable):
|
||||
if not isinstance(meth, collections.abc.Callable):
|
||||
continue
|
||||
# Need to use a closure so that meth remains bound to its current
|
||||
# value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue