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
6fa96796
Commit
6fa96796
authored
Jan 11, 2012
by
Ralf Schmitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide test__greenlet's test_func from py.test by renaming it
otherwise py.test executes it as a test function.
parent
864056fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
greentest/test__greenlet.py
greentest/test__greenlet.py
+7
-7
No files found.
greentest/test__greenlet.py
View file @
6fa96796
...
...
@@ -100,13 +100,13 @@ class TestUnlink(greentest.TestCase):
def
setUp
(
self
):
greentest
.
TestCase
.
setUp
(
self
)
self
.
p
=
gevent
.
spawn
(
test_func
)
self
.
p
=
gevent
.
spawn
(
dummy_
test_func
)
def
_test_func
(
self
,
link
):
p
=
self
.
p
link
(
test_func
)
link
(
dummy_
test_func
)
assert
len
(
p
.
_links
)
==
1
,
p
.
_links
p
.
unlink
(
test_func
)
p
.
unlink
(
dummy_
test_func
)
assert
not
p
.
_links
,
p
.
_links
link
(
self
.
setUp
)
...
...
@@ -404,7 +404,7 @@ class TestStuff(greentest.TestCase):
sleep
(
DELAY
)
def
test_func
(
*
args
):
def
dummy_
test_func
(
*
args
):
pass
...
...
@@ -419,12 +419,12 @@ hexobj = re.compile('-?0x[0123456789abcdef]+L?', re.I)
class
TestStr
(
greentest
.
TestCase
):
def
test_function
(
self
):
g
=
gevent
.
Greenlet
.
spawn
(
test_func
)
self
.
assertEqual
(
hexobj
.
sub
(
'X'
,
str
(
g
)),
'<Greenlet at X: test_func>'
)
g
=
gevent
.
Greenlet
.
spawn
(
dummy_
test_func
)
self
.
assertEqual
(
hexobj
.
sub
(
'X'
,
str
(
g
)),
'<Greenlet at X:
dummy_
test_func>'
)
assert_not_ready
(
g
)
g
.
join
()
assert_ready
(
g
)
self
.
assertEqual
(
hexobj
.
sub
(
'X'
,
str
(
g
)),
'<Greenlet at X: test_func>'
)
self
.
assertEqual
(
hexobj
.
sub
(
'X'
,
str
(
g
)),
'<Greenlet at X:
dummy_
test_func>'
)
def
test_method
(
self
):
g
=
gevent
.
Greenlet
.
spawn
(
A
().
method
)
...
...
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