diff options
author | Ethan Smith <ethan@ethanhs.me> | 2020-04-14 23:14:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 23:14:15 (GMT) |
commit | d01628e411752ee6849f862cae66a1c69fe512b7 (patch) | |
tree | 4b6fc066cc0dc4c1aa2352896d81c0573e5a9138 /Lib/test | |
parent | 33986465bde2a2188537c4ef6cdb6055e348f31f (diff) | |
download | cpython-d01628e411752ee6849f862cae66a1c69fe512b7.zip cpython-d01628e411752ee6849f862cae66a1c69fe512b7.tar.gz cpython-d01628e411752ee6849f862cae66a1c69fe512b7.tar.bz2 |
bpo-39481: PEP 585 for dataclasses, mailbox, contextvars (GH-19425)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_context.py | 4 | ||||
-rw-r--r-- | Lib/test/test_genericalias.py | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Lib/test/test_context.py b/Lib/test/test_context.py index b9e991a..2d8b63a 100644 --- a/Lib/test/test_context.py +++ b/Lib/test/test_context.py @@ -358,10 +358,6 @@ class ContextTest(unittest.TestCase): tp.shutdown() self.assertEqual(results, list(range(10))) - def test_contextvar_getitem(self): - clss = contextvars.ContextVar - self.assertEqual(clss[str], clss) - # HAMT Tests diff --git a/Lib/test/test_genericalias.py b/Lib/test/test_genericalias.py index 686df17..37cbf92 100644 --- a/Lib/test/test_genericalias.py +++ b/Lib/test/test_genericalias.py @@ -9,7 +9,10 @@ from collections.abc import * from concurrent.futures import Future from concurrent.futures.thread import _WorkItem from contextlib import AbstractContextManager, AbstractAsyncContextManager -from functools import partial, partialmethod, _lru_cache_wrapper, cached_property +from contextvars import ContextVar, Token +from dataclasses import Field +from functools import partial, partialmethod, cached_property +from mailbox import Mailbox, _PartialFile from ctypes import Array, LibraryLoader from difflib import SequenceMatcher from filecmp import dircmp @@ -60,6 +63,9 @@ class BaseTest(unittest.TestCase): Reversible, Container, Collection, Callable, + Mailbox, _PartialFile, + ContextVar, Token, + Field, Set, MutableSet, Mapping, MutableMapping, MappingView, KeysView, ItemsView, ValuesView, |