diff --git a/tests/not_impl_gen.py b/tests/not_impl_gen.py index d8a8f400f..203efcabb 100644 --- a/tests/not_impl_gen.py +++ b/tests/not_impl_gen.py @@ -6,6 +6,13 @@ import pkgutil import os import sys +sys.path = list( + filter( + lambda path: "site-packages" not in path and "dist-packages" not in path, + sys.path, + ) +) + def attr_is_not_inherited(type_, attr): """