summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorJacob Hayes <jacob.r.hayes@gmail.com>2021-12-08 18:52:57 (GMT)
committerGitHub <noreply@github.com>2021-12-08 18:52:57 (GMT)
commit3cb9731b7e59b0df9a7a9ab6b7746a669958b693 (patch)
tree6b7285ea240da0b8f8ea18cffab8bb0f3c4ae4e6 /Lib/test
parentf893bb2e01307c92ca19597f44874ecaffe7f06f (diff)
downloadcpython-3cb9731b7e59b0df9a7a9ab6b7746a669958b693.zip
cpython-3cb9731b7e59b0df9a7a9ab6b7746a669958b693.tar.gz
cpython-3cb9731b7e59b0df9a7a9ab6b7746a669958b693.tar.bz2
bpo-45359: Support TopologicalSorter type subscript (GH-28714)
* Support TopologicalSorter type subscript * 📜🤖 Added by blurb_it. * Add TopologicalSorter to GenericAlias tests * Update Misc/NEWS.d/next/Library/2021-10-03-22-27-35.bpo-45359.LX_uxe.rst Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_genericalias.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_genericalias.py b/Lib/test/test_genericalias.py
index 0daaff0..706cc5e 100644
--- a/Lib/test/test_genericalias.py
+++ b/Lib/test/test_genericalias.py
@@ -13,6 +13,7 @@ from contextlib import AbstractContextManager, AbstractAsyncContextManager
from contextvars import ContextVar, Token
from dataclasses import Field
from functools import partial, partialmethod, cached_property
+from graphlib import TopologicalSorter
from mailbox import Mailbox, _PartialFile
try:
import ctypes
@@ -56,6 +57,7 @@ class BaseTest(unittest.TestCase):
OrderedDict, Counter, UserDict, UserList,
Pattern, Match,
partial, partialmethod, cached_property,
+ TopologicalSorter,
AbstractContextManager, AbstractAsyncContextManager,
Awaitable, Coroutine,
AsyncIterable, AsyncIterator,