def test_isNotInIOThread(self):
        results = []
        reactor = self.buildReactor()
        def check():
            results.append(isInIOThread())
            reactor.callFromThread(reactor.stop)
        reactor.callInThread(check)
        self.runReactor(reactor)
        self.assertEqual([False], results)
The reactor registers itself as the I/O thread when it runs so that
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_threads.py/ThreadTestsBuilder.test_isNotInIOThread