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
ef3ff02e
Commit
ef3ff02e
authored
Sep 15, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__doctests.py: use walk_modules() function
parent
ec2b6bad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
greentest/test__doctests.py
greentest/test__doctests.py
+3
-10
No files found.
greentest/test__doctests.py
View file @
ef3ff02e
...
...
@@ -6,6 +6,7 @@ import unittest
from
os.path
import
join
,
dirname
import
gevent
from
gevent
import
socket
from
greentest
import
walk_modules
# Ignore tracebacks: ZeroDivisionError
...
...
@@ -30,16 +31,8 @@ if __name__ == '__main__':
return
modules
.
add
((
name
,
path
))
for
path
,
dirs
,
files
in
os
.
walk
(
base
):
package
=
'gevent'
+
path
.
replace
(
base
,
''
).
replace
(
'/'
,
'.'
)
add_module
(
package
,
join
(
path
,
'__init__.py'
))
for
f
in
files
:
module
=
None
if
f
.
endswith
(
'.py'
):
module
=
f
[:
-
3
]
if
module
:
add_module
(
package
+
'.'
+
module
,
join
(
path
,
f
))
for
path
,
module
in
walk_modules
():
add_module
(
module
,
path
)
add_module
(
'setup'
,
'setup.py'
)
if
not
modules
:
...
...
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