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
141ba158
Commit
141ba158
authored
Oct 16, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename test_wait to test__iwait and add to the relevant .txt files.
parent
105259ee
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
src/greentest/test__iwait.py
src/greentest/test__iwait.py
+8
-4
src/greentest/tests_that_dont_monkeypatch.txt
src/greentest/tests_that_dont_monkeypatch.txt
+1
-0
src/greentest/tests_that_dont_use_resolver.txt
src/greentest/tests_that_dont_use_resolver.txt
+1
-0
No files found.
src/greentest/test_wait.py
→
src/greentest/test_
_i
wait.py
View file @
141ba158
...
...
@@ -3,10 +3,11 @@ import greentest
from
gevent.lock
import
Semaphore
class
TestWaiting
(
greentest
.
TestCase
):
def
test_wait_noiter
(
self
):
"""Test that gevent.iwait returns objects which can be iterated upon
without additional calls to iter()"""
class
Testiwait
(
greentest
.
TestCase
):
def
test_noiter
(
self
):
# Test that gevent.iwait returns objects which can be iterated upon
# without additional calls to iter()
sem1
=
Semaphore
()
sem2
=
Semaphore
()
...
...
@@ -14,3 +15,6 @@ class TestWaiting(greentest.TestCase):
gevent
.
spawn
(
sem1
.
release
)
ready
=
next
(
gevent
.
iwait
((
sem1
,
sem2
)))
self
.
assertEqual
(
sem1
,
ready
)
if
__name__
==
'__main__'
:
greentest
.
main
()
src/greentest/tests_that_dont_monkeypatch.txt
View file @
141ba158
...
...
@@ -19,3 +19,4 @@ test___config.py
test___monitor.py
test__events.py
test__monkey_scope.py
test__iwait.py
src/greentest/tests_that_dont_use_resolver.txt
View file @
141ba158
...
...
@@ -133,3 +133,4 @@ test__refcount_core.py
test__api.py
test__monitor.py
test__events.py
test__iwait.py
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