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
23c5ee4a
Commit
23c5ee4a
authored
Oct 20, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test__all__ on windows.
parent
eee2f642
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
greentest/test__all__.py
greentest/test__all__.py
+19
-4
known_failures.py
known_failures.py
+0
-1
No files found.
greentest/test__all__.py
View file @
23c5ee4a
...
...
@@ -47,6 +47,13 @@ NO_ALL = ['gevent.threading', 'gevent._util',
'gevent._fileobjectcommon'
,
'gevent._fileobjectposix'
,
'gevent._tblib'
]
# A list of modules that may contain things that aren't actually, technically,
# extensions, but that need to be in __extensions__ anyway due to the way,
# for example, monkey patching, needs to work.
EXTRA_EXTENSIONS
=
[]
if
sys
.
platform
.
startswith
(
'win'
):
EXTRA_EXTENSIONS
.
append
(
'gevent.signal'
)
class
Test
(
unittest
.
TestCase
):
...
...
@@ -111,6 +118,8 @@ class Test(unittest.TestCase):
def
check_extensions_actually_extend
(
self
):
"""Check that the module actually defines new entries in __extensions__"""
if
self
.
modname
in
EXTRA_EXTENSIONS
:
return
for
name
in
self
.
__extensions__
:
if
hasattr
(
self
.
stdlib_module
,
name
):
raise
AssertionError
(
"'%r' is not an extension, it is found in %r"
%
(
name
,
self
.
stdlib_module
))
...
...
@@ -153,10 +162,16 @@ are missing from %r:
raise
AssertionError
(
msg
)
def
_test
(
self
,
modname
):
if
modname
.
endswith
(
'2'
)
or
modname
.
endswith
(
"279"
):
return
if
modname
.
endswith
(
'3'
):
# Generally, ignore the portions that are only implemented
# on particular platforms; they generally contain partial
# implementations completed in different modules.
ignored_suffixes
=
[
'2'
,
'279'
,
'3'
]
if
sys
.
platform
.
startswith
(
'win'
):
ignored_suffixes
.
append
(
'posix'
)
for
x
in
ignored_suffixes
:
if
modname
.
endswith
(
x
):
return
self
.
modname
=
modname
six
.
exec_
(
"import %s"
%
modname
,
{})
self
.
module
=
sys
.
modules
[
modname
]
...
...
known_failures.py
View file @
23c5ee4a
...
...
@@ -52,7 +52,6 @@ else:
if
sys
.
platform
==
'win32'
:
# other Windows-related issues (need investigating)
FAILING_TESTS
+=
[
'test__all__.py'
,
# fork watchers don't get called in multithreaded programs on windows
# No idea why.
'test__core_fork.py'
,
...
...
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