Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
4fd76bf0
Commit
4fd76bf0
authored
Aug 01, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__examples.py: do not run unix-only examples on windows
parent
43e79da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
greentest/test__examples.py
greentest/test__examples.py
+6
-1
No files found.
greentest/test__examples.py
View file @
4fd76bf0
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment