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
8bf44b27
Commit
8bf44b27
authored
Oct 27, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test_httplib for 3.5 and 3.6
parent
6cc31547
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3685 additions
and
3 deletions
+3685
-3
src/greentest/3.5/test_httplib.py
src/greentest/3.5/test_httplib.py
+1753
-0
src/greentest/3.6/test_httplib.py
src/greentest/3.6/test_httplib.py
+1903
-0
src/greentest/patched_tests_setup.py
src/greentest/patched_tests_setup.py
+29
-3
No files found.
src/greentest/3.5/test_httplib.py
0 → 100644
View file @
8bf44b27
This diff is collapsed.
Click to expand it.
src/greentest/3.6/test_httplib.py
0 → 100644
View file @
8bf44b27
This diff is collapsed.
Click to expand it.
src/greentest/patched_tests_setup.py
View file @
8bf44b27
...
...
@@ -134,8 +134,8 @@ disabled_tests = [
'test_signal.SiginterruptTest.test_siginterrupt_on'
,
# these rely on os.read raising EINTR which never happens with gevent.os.read
'test_subprocess.test_leak_fast_process_del_killed'
,
'test_subprocess.test_zombie_fast_process_del'
,
'test_subprocess.
ProcessTestCase.
test_leak_fast_process_del_killed'
,
'test_subprocess.
ProcessTestCase.
test_zombie_fast_process_del'
,
# relies on subprocess._active which we don't use
'test_ssl.ThreadedTests.test_default_ciphers'
,
...
...
@@ -462,6 +462,12 @@ if sys.version_info[:2] >= (3, 4):
# it should be found at runtime.
'test_socket.GeneralModuleTests.test_sock_ioctl'
,
# See comments for 2.7; these hang
'test_httplib.HTTPSTest.test_local_good_hostname'
,
'test_httplib.HTTPSTest.test_local_unknown_cert'
,
# XXX This fails for an unknown reason
'test_httplib.HeaderTests.test_parse_all_octets'
,
]
if
sys
.
platform
==
'darwin'
:
...
...
@@ -564,13 +570,33 @@ if OPENSSL_VERSION.startswith('LibreSSL'):
'test_ssl.BasicSocketTests.test_openssl_version'
]
# Now build up the data structure we'll use to actually find disabled tests
# to avoid a linear scan for every file (it seems the list could get quite large)
# (First, freeze the source list to make sure it isn't modified anywhere)
disabled_tests
=
frozenset
(
disabled_tests
)
_disabled_tests_by_file
=
{}
for
file_case_meth
in
disabled_tests
:
file_name
,
case
,
meth
=
file_case_meth
.
split
(
'.'
)
try
:
by_file
=
_disabled_tests_by_file
[
file_name
]
except
KeyError
:
by_file
=
_disabled_tests_by_file
[
file_name
]
=
set
()
by_file
.
add
(
meth
)
def
disable_tests_in_source
(
source
,
name
):
if
name
.
startswith
(
'./'
):
# turn "./test_socket.py" (used for auto-complete) into "test_socket.py"
name
=
name
[
2
:]
my_disabled_tests
=
[
x
for
x
in
disabled_tests
if
x
.
startswith
(
name
+
'.'
)]
if
name
.
endswith
(
'.py'
):
name
=
name
[:
-
3
]
my_disabled_tests
=
_disabled_tests_by_file
.
get
(
name
)
if
not
my_disabled_tests
:
return
source
for
test
in
my_disabled_tests
:
...
...
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