bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603)

(cherry picked from commit 4ab4695388fb9ec03a14d93e90ce50d832a920ec)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
1 file changed