From 8d8e138f0a6b0083986bd92628a16a882c3167ad Mon Sep 17 00:00:00 2001 From: jfh Date: Mon, 27 Sep 2021 22:52:35 +0300 Subject: [PATCH] fix issue 3154 --- extra_tests/not_impl_gen.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extra_tests/not_impl_gen.py b/extra_tests/not_impl_gen.py index 55ea77bdc..c1695a119 100644 --- a/extra_tests/not_impl_gen.py +++ b/extra_tests/not_impl_gen.py @@ -241,7 +241,14 @@ libdir = {os.path.abspath("../Lib/").encode('utf8')!r} """ # Copy the source code of functions we will reuse in the generated script -for fn in [attr_is_not_inherited, extra_info, dir_of_mod_or_error]: +REUSED = [ + attr_is_not_inherited, + extra_info, + dir_of_mod_or_error, + import_module, + is_child +] +for fn in REUSED: output += "".join(inspect.getsourcelines(fn)[0]) + "\n\n" # Prevent missing variable linter errors from compare()