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
44e2bcac
Commit
44e2bcac
authored
Sep 15, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patched_tests_setup.py: enable test_threading.ThreadTests.test_foreign_thread on Python 2.7
parent
e8d6b398
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
greentest/patched_tests_setup.py
greentest/patched_tests_setup.py
+6
-4
No files found.
greentest/patched_tests_setup.py
View file @
44e2bcac
import
sys
import
re
# 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.
...
...
@@ -15,9 +17,6 @@ disabled_tests = [
# uses some internal C API of threads not available when threads are emulated with greenlets
'test_threading.ThreadTests.test_PyThreadState_SetAsyncExc'
,
# this one is a bogus test that fails even without monkey patching
'test_threading.ThreadTests.test_foreign_thread'
,
# access _sock.gettimeout() which is always in non-blocking mode
'test_urllib2net.TimeoutTest.test_ftp_no_timeout'
,
'test_urllib2net.TimeoutTest.test_ftp_timeout'
,
...
...
@@ -29,7 +28,10 @@ disabled_tests = [
'test_socket.UDPTimeoutTest.testUDPTimeout'
]
import
sys
,
re
if
sys
.
version_info
[:
2
]
<
(
2
,
7
):
# On Python 2.6, this test fails even without monkey patching
disabled_tests
.
append
(
'test_threading.ThreadTests.test_foreign_thread'
)
def
disable_tests_in_the_source
(
source
,
name
):
my_disabled_tests
=
[
x
for
x
in
disabled_tests
if
x
.
startswith
(
name
+
'.'
)]
...
...
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