mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import errno
|
||||
import socket
|
||||
import sys
|
||||
|
@ -48,7 +48,7 @@ class CurrentTimeTest(unittest.TestCase):
|
|||
|
||||
# Perform a minimal sanity check on the result, just to be sure
|
||||
# the request means what we think it means.
|
||||
self.assertIsInstance(builders, collections.Sequence)
|
||||
self.assertIsInstance(builders, collections.abc.Sequence)
|
||||
self.assertTrue([x for x in builders if "3.x" in x], builders)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue