Commit 4fd76bf0 authored by Denis Bilenko's avatar Denis Bilenko

test__examples.py: do not run unix-only examples on windows

parent 43e79da0
...@@ -31,6 +31,10 @@ print ('\n'.join(examples)) ...@@ -31,6 +31,10 @@ print ('\n'.join(examples))
def make_test(path): def make_test(path):
if sys.platform == 'win32' and os.path.basename(path) in ('geventsendfile.py', 'processes.py'):
print 'Ignoring', path
return
if ' ' in path: if ' ' in path:
path = '"%s"' % path path = '"%s"' % path
...@@ -53,7 +57,8 @@ def make_test(path): ...@@ -53,7 +57,8 @@ def make_test(path):
for example in simple_examples: for example in simple_examples:
test = make_test(example) test = make_test(example)
globals()[test.__name__] = test globals()[test.__name__] = test
print ('Added %s' % test.__name__) if test is not None:
print ('Added %s' % test.__name__)
del test del test
......
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