From 91c7cf9007ae5b5d6aff18758d6e783fd473a47e Mon Sep 17 00:00:00 2001 From: david-sarah Date: Thu, 21 Jul 2011 20:54:02 -0700 Subject: [PATCH] misc/build_helpers/run_trial.py: undo change to block pywin32 (it didn't work because run_trial.py is no longer used). refs #1334 --- misc/build_helpers/run_trial.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/misc/build_helpers/run_trial.py b/misc/build_helpers/run_trial.py index 246572b9..e398a7a7 100644 --- a/misc/build_helpers/run_trial.py +++ b/misc/build_helpers/run_trial.py @@ -2,23 +2,6 @@ import os, sys, re, glob -if sys.platform == "win32": - # Buildbot depends on pywin32, but we don't want it to be available to the code under test. - def not_pywin32(entry): - dirs = os.path.normcase(entry).replace('/', '\\').split('\\') - return "win32" not in dirs and "pythonwin" not in dirs - - print sys.path - sys.path = filter(not_pywin32, sys.path) - print sys.path - - try: - import win32api - except ImportError: - pass # expected - else: - raise AssertionError("We were unable to expunge pywin32 from the sys.path.") - def read_version_py(infname): try: -- 2.45.2