From f8cf39ebbb71bb8461d6fdabb5aa61d7aa67194c Mon Sep 17 00:00:00 2001 From: coolreader18 <33094578+coolreader18@users.noreply.github.com> Date: Mon, 1 Jul 2019 13:18:05 -0500 Subject: [PATCH] Change sys.path in not_impl_gen.py --- tests/not_impl_gen.py | 7 +++++++ 1 file changed, 7 insertions(+) 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): """