Commit 141ba158 authored by Jason Madden's avatar Jason Madden

Rename test_wait to test__iwait and add to the relevant .txt files.

parent 105259ee
......@@ -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()
......@@ -19,3 +19,4 @@ test___config.py
test___monitor.py
test__events.py
test__monkey_scope.py
test__iwait.py
......@@ -133,3 +133,4 @@ test__refcount_core.py
test__api.py
test__monitor.py
test__events.py
test__iwait.py
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment