Commit ec2b6bad authored by Denis Bilenko's avatar Denis Bilenko

test__execmodules.py: use walk_modules() function

parent 56afa898
import os
import sys
import traceback
from greentest import walk_modules
base = '../gevent'
modules = set()
for path, dirs, files in os.walk(base):
package = 'gevent' + path.replace(base, '').replace('/', '.')
modules.add((package, os.path.join(path, '__init__.py')))
for f in files:
module = None
if f.endswith('.py'):
module = f[:-3]
if module:
modules.add((package + '.' + module, os.path.join(path, f)))
for m, path in modules:
print m, path
for path, module in walk_modules():
sys.stderr.write('%s %s\n' % (module, path))
try:
execfile(path)
except Exception:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment