blob: 6e7c5afaea67ffb3b2f9472a84b1acaa203d8924 (
plain)
1
2
3
4
5
6
7
8
9
10
|
from testing.embedding.test_basic import EmbeddingTests
class TestThreadLocal(EmbeddingTests):
def test_thread_local(self):
tlocal_cffi = self.prepare_module('tlocal')
self.compile('tlocal-test', [tlocal_cffi], threads=True)
for i in range(10):
output = self.execute('tlocal-test')
assert output == "done\n"
|