mit neuen venv und exe-Files
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from gevent import get_hub
|
||||
from gevent import testing as greentest
|
||||
|
||||
class Test(greentest.TestCase):
|
||||
def test(self):
|
||||
count = [0]
|
||||
|
||||
def incr():
|
||||
count[0] += 1
|
||||
|
||||
loop = get_hub().loop
|
||||
loop.run_callback(incr)
|
||||
loop.run()
|
||||
self.assertEqual(count, [1])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
greentest.main()
|
||||
Reference in New Issue
Block a user