Skip to content

Commit 6659cad

Browse files
committed
fix an import warning in test_doctest.py when importing readline in WASI
1 parent c38898d commit 6659cad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_doctest/test_doctest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)