diff --git a/tests/test_core.py b/tests/test_core.py index 5f04526..b0ecdc2 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -484,7 +484,7 @@ def sys_modules_sources(): for module in list(sys.modules.values()): try: filename = inspect.getsourcefile(module) - except TypeError: + except (TypeError, AttributeError): continue if not filename: