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
1e03e4b1
Commit
1e03e4b1
authored
May 30, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test__all__.py not to bark at gevent.thread._local
parent
4cc3bba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
greentest/test__all__.py
greentest/test__all__.py
+7
-2
No files found.
greentest/test__all__.py
View file @
1e03e4b1
...
...
@@ -56,8 +56,13 @@ class Test(unittest.TestCase):
def
check_implements_subset_of_stdlib_all
(
self
):
"Check that __implements__ + __imports__ is a subset of the corresponding standard module __all__ or dir()"
for
name
in
self
.
__implements__
+
self
.
__imports__
:
if
name
not
in
self
.
stdlib_all
and
name
not
in
COULD_BE_MISSING
.
get
(
self
.
stdlib_name
,
[]):
raise
AssertionError
(
'%r is not found in %r.__all__'
%
(
name
,
self
.
stdlib_module
))
if
name
in
self
.
stdlib_all
:
continue
if
name
in
COULD_BE_MISSING
.
get
(
self
.
stdlib_name
,
[]):
continue
if
name
in
dir
(
self
.
stdlib_module
):
# like thread._local which is not in thread.__all__
continue
raise
AssertionError
(
'%r is not found in %r.__all__ nor in dir(%r)'
%
(
name
,
self
.
stdlib_module
,
self
.
stdlib_module
))
def
check_implements_actually_implements
(
self
):
"""Check that the module actually implements the entries from __implements__"""
...
...
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