Skip to content

Commit 1f30557

Browse files
committed
test.not_impl_gen ignore py module w/ import error
Ignore python module which cannot be imported and print error message thereof
1 parent 8542224 commit 1f30557

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/not_impl_gen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def get_module_methods(name):
6969
return set(dir(__import__(name))) if name not in ("this", "antigravity") else None
7070
except ModuleNotFoundError:
7171
return None
72+
except Exception as e:
73+
print("!!! {} skipped because {}: {}".format(name, type(e).__name__, str(e)))
7274

7375

7476
def gen_modules(header, footer, output):

0 commit comments

Comments
 (0)