Skip to content

Commit b667ac7

Browse files
authored
Merge branch 'main' into fix-deprecation-warning
2 parents 100bcec + 599be68 commit b667ac7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Lib/asyncio/futures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Future:
6262
# that it is not compatible by setting this to None.
6363
# - It is set by __iter__() below so that Task.__step() can tell
6464
# the difference between
65-
# `await Future()` or`yield from Future()` (correct) vs.
65+
# `await Future()` or `yield from Future()` (correct) vs.
6666
# `yield Future()` (incorrect).
6767
_asyncio_future_blocking = False
6868

Lib/test/test_doctest/test_doctest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2860,7 +2860,7 @@ def test_testfile(): r"""
28602860
>>> _colorize.COLORIZE = save_colorize
28612861
"""
28622862

2863-
class TestImporter(importlib.abc.MetaPathFinder, importlib.abc.ResourceLoader):
2863+
class TestImporter(importlib.abc.MetaPathFinder):
28642864

28652865
def find_spec(self, fullname, path, target=None):
28662866
return importlib.util.spec_from_file_location(fullname, path, loader=self)
@@ -2869,6 +2869,12 @@ def get_data(self, path):
28692869
with open(path, mode='rb') as f:
28702870
return f.read()
28712871

2872+
def exec_module(self, module):
2873+
raise ImportError
2874+
2875+
def create_module(self, spec):
2876+
return None
2877+
28722878
class TestHook:
28732879

28742880
def __init__(self, pathdir):

0 commit comments

Comments
 (0)