mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-39481: PEP 585 for a variety of modules (GH-19423)
- concurrent.futures - ctypes - http.cookies - multiprocessing - queue - tempfile - unittest.case - urllib.parse
This commit is contained in:
parent
e3ec44d692
commit
0361556537
15 changed files with 66 additions and 1 deletions
|
@ -6,16 +6,28 @@ from collections import (
|
|||
defaultdict, deque, OrderedDict, Counter, UserDict, UserList
|
||||
)
|
||||
from collections.abc import *
|
||||
from concurrent.futures import Future
|
||||
from concurrent.futures.thread import _WorkItem
|
||||
from contextlib import AbstractContextManager, AbstractAsyncContextManager
|
||||
from ctypes import Array, LibraryLoader
|
||||
from difflib import SequenceMatcher
|
||||
from filecmp import dircmp
|
||||
from fileinput import FileInput
|
||||
from mmap import mmap
|
||||
from ipaddress import IPv4Network, IPv4Interface, IPv6Network, IPv6Interface
|
||||
from itertools import chain
|
||||
from http.cookies import Morsel
|
||||
from multiprocessing.managers import ValueProxy
|
||||
from multiprocessing.pool import ApplyResult
|
||||
from multiprocessing.shared_memory import ShareableList
|
||||
from multiprocessing.queues import SimpleQueue
|
||||
from os import DirEntry
|
||||
from re import Pattern, Match
|
||||
from types import GenericAlias, MappingProxyType, AsyncGeneratorType
|
||||
from tempfile import TemporaryDirectory, SpooledTemporaryFile
|
||||
from urllib.parse import SplitResult, ParseResult
|
||||
from unittest.case import _AssertRaisesContext
|
||||
from queue import Queue, SimpleQueue
|
||||
import typing
|
||||
|
||||
from typing import TypeVar
|
||||
|
@ -49,6 +61,15 @@ class BaseTest(unittest.TestCase):
|
|||
DirEntry,
|
||||
IPv4Network, IPv4Interface, IPv6Network, IPv6Interface,
|
||||
chain,
|
||||
TemporaryDirectory, SpooledTemporaryFile,
|
||||
Queue, SimpleQueue,
|
||||
_AssertRaisesContext,
|
||||
Array, LibraryLoader,
|
||||
SplitResult, ParseResult,
|
||||
ValueProxy, ApplyResult,
|
||||
ShareableList, SimpleQueue,
|
||||
Future, _WorkItem,
|
||||
Morsel,
|
||||
):
|
||||
tname = t.__name__
|
||||
with self.subTest(f"Testing {tname}"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue