blob: 2c9dcad03355c729ea1fb9be78741160f111545a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.
import unittest
import gras
class ThreadPoolTest(unittest.TestCase):
def test_make_config(self):
c = gras.ThreadPoolConfig()
print c.thread_count
print c.yield_strategy
def test_make_tp(self):
c = gras.ThreadPoolConfig()
tp = gras.ThreadPool(c)
def test_make_tp_set_active(self):
c = gras.ThreadPoolConfig()
tp = gras.ThreadPool(c)
tp.set_active()
if __name__ == '__main__':
unittest.main()
|