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
d52ded5e
Commit
d52ded5e
authored
Aug 10, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use switch_expected where needed
parent
9e6e12f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
greentest/test__greenlet.py
greentest/test__greenlet.py
+2
-0
greentest/test__timeout.py
greentest/test__timeout.py
+4
-1
No files found.
greentest/test__greenlet.py
View file @
d52ded5e
...
@@ -129,6 +129,7 @@ class TestLink(greentest.TestCase):
...
@@ -129,6 +129,7 @@ class TestLink(greentest.TestCase):
class
TestUnlink
(
greentest
.
TestCase
):
class
TestUnlink
(
greentest
.
TestCase
):
switch_expected
=
False
def
setUp
(
self
):
def
setUp
(
self
):
greentest
.
TestCase
.
setUp
(
self
)
greentest
.
TestCase
.
setUp
(
self
)
...
@@ -484,6 +485,7 @@ class A(object):
...
@@ -484,6 +485,7 @@ class A(object):
hexobj
=
re
.
compile
(
'0x[0123456789abcdef]+'
)
hexobj
=
re
.
compile
(
'0x[0123456789abcdef]+'
)
class
TestStr
(
greentest
.
TestCase
):
class
TestStr
(
greentest
.
TestCase
):
switch_expected
=
False
def
test
(
self
):
def
test
(
self
):
g1
=
gevent
.
Greenlet
(
test_func
)
g1
=
gevent
.
Greenlet
(
test_func
)
...
...
greentest/test__timeout.py
View file @
d52ded5e
...
@@ -3,7 +3,8 @@ import gevent
...
@@ -3,7 +3,8 @@ import gevent
DELAY
=
0.01
DELAY
=
0.01
class
Test
(
greentest
.
TestCase
):
class
TestDirectRaise
(
greentest
.
TestCase
):
switch_expected
=
False
def
test_direct_raise_class
(
self
):
def
test_direct_raise_class
(
self
):
try
:
try
:
...
@@ -19,6 +20,8 @@ class Test(greentest.TestCase):
...
@@ -19,6 +20,8 @@ class Test(greentest.TestCase):
assert
timeout
is
t
,
(
timeout
,
t
)
assert
timeout
is
t
,
(
timeout
,
t
)
assert
not
t
.
pending
,
repr
(
t
)
assert
not
t
.
pending
,
repr
(
t
)
class
Test
(
greentest
.
TestCase
):
def
test_with_timeout
(
self
):
def
test_with_timeout
(
self
):
self
.
assertRaises
(
gevent
.
Timeout
,
gevent
.
with_timeout
,
DELAY
,
gevent
.
sleep
,
DELAY
*
2
)
self
.
assertRaises
(
gevent
.
Timeout
,
gevent
.
with_timeout
,
DELAY
,
gevent
.
sleep
,
DELAY
*
2
)
X
=
object
()
X
=
object
()
...
...
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