def test_stopThreadPoolWhenStartedAfterReactorRan(self):
        reactor = self.buildReactor()
        threadPoolRefs = []
        def acquireThreadPool():
            threadPoolRefs.append(ref(reactor.getThreadPool()))
            reactor.stop()
        reactor.callWhenRunning(acquireThreadPool)
        self.runReactor(reactor)
        gc.collect()
        self.assertIdentical(threadPoolRefs[0](), None)
We must handle the case of shutting down the thread pool when it was
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_threads.py/ThreadTestsBuilder.test_stopThreadPoolWhenStartedAfterReactorRan