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