summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
authorNikolay Kim <fafhrd91@gmail.com>2013-02-20 09:40:34 -0800
committerNikolay Kim <fafhrd91@gmail.com>2013-02-20 09:40:34 -0800
commit92f8256bb5dd0b5349c6a3df2379fd0394c0f25b (patch)
treec5054c8d720edf0bb815f3f6d3f9fa41b13fd397 /runtests.py
parent18d6e0495c86d5497f8a7231c2cd4061ef72fd20 (diff)
downloadtrollius-92f8256bb5dd0b5349c6a3df2379fd0394c0f25b.tar.gz
_ProactorSocketTransport get_extra_info support
Diffstat (limited to 'runtests.py')
-rw-r--r--runtests.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/runtests.py b/runtests.py
index 6758c74..64036d5 100644
--- a/runtests.py
+++ b/runtests.py
@@ -30,17 +30,19 @@ def load_tests(includes=(), excludes=()):
test_mods = [f[:-3] for f in os.listdir(TULIP_DIR)
if f.endswith('_test.py')]
- if sys.platform == 'win32':
+ mods = []
+ for mod in test_mods:
try:
- test_mods.remove('subprocess_test')
- except ValueError:
+ __import__('tulip', fromlist=[mod])
+ mods.append(mod)
+ except ImportError:
pass
- tulip = __import__('tulip', fromlist=test_mods)
loader = unittest.TestLoader()
suite = unittest.TestSuite()
+ tulip = sys.modules['tulip']
- for mod in [getattr(tulip, name) for name in test_mods]:
+ for mod in [getattr(tulip, name) for name in mods]:
for name in set(dir(mod)):
if name.endswith('Tests'):
test_module = getattr(mod, name)