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
00a0a004
Commit
00a0a004
authored
Jan 29, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add patched_tests_setup.py
parent
61f93450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
greentest/patched_tests_setup.py
greentest/patched_tests_setup.py
+41
-0
No files found.
greentest/patched_tests_setup.py
0 → 100644
View file @
00a0a004
# By default, test cases are expected to switch and emit warnings if there was none
# If a test is found in this list, it's expected not to switch.
switch_not_expected
=
'''test_select.SelectTestCase.test_error_conditions
test_ftplib.TestFTPClass.test_all_errors
test_ftplib.TestFTPClass.test_getwelcome
test_ftplib.TestFTPClass.test_sanitize
test_ftplib.TestFTPClass.test_set_pasv
test_ftplib.TestIPv6Environment.test_af'''
.
split
()
disabled_tests
=
[
# uses signal module which does not work with gevent (use gevent.signal())
'test_socket.TCPTimeoutTest.testInterruptedTimeout'
,
# uses some internal C API of threads not available when threads are emulated with greenlets
'test_threading.ThreadTests.test_PyThreadState_SetAsyncExc'
,
# access _sock.gettimeout() which is always in non-blocking mode
'test_urllib2net.TimeoutTest.test_ftp_no_timeout'
,
'test_urllib2net.TimeoutTest.test_ftp_timeout'
,
'test_urllib2net.TimeoutTest.test_http_no_timeout'
,
'test_urllib2net.TimeoutTest.test_http_timeout'
,
# this test seems to have a bug which makes it fail with error: (107, 'Transport endpoint is not connected')
# (they create TCP socket, not UDP)
'test_socket.UDPTimeoutTest.testUDPTimeout'
]
import
sys
,
re
def
disable_tests_in_the_source
(
source
,
name
):
my_disabled_tests
=
[
x
for
x
in
disabled_tests
if
x
.
startswith
(
name
+
'.'
)]
if
not
my_disabled_tests
:
return
source
for
test
in
my_disabled_tests
:
# XXX ignoring TestCase class name
testcase
=
test
.
split
(
'.'
)[
-
1
]
source
,
n
=
re
.
subn
(
testcase
,
'XXX'
+
testcase
,
source
)
print
>>
sys
.
stderr
,
'Removed %s (%d)'
%
(
testcase
,
n
)
return
source
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