def test_withoutCProfile(self):
        savedModules = sys.modules.copy()
        sys.modules["cProfile"] = None

        config = twistd.ServerOptions()
        config["profiler"] = "cProfile"
        profiler = app.AppProfiler(config)
        try:
            self.assertRaises(SystemExit, profiler.run, None)
        finally:
            sys.modules.clear()
            sys.modules.update(savedModules)
Verify the number of lines filtered is what we expect
dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/AppProfilingTests.test_withoutCProfile--crossover with--dataset/ETHPy150Open pantsbuild/pants/contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_noqa.py/TestPyStyleTask.test_noqa_line_filter_length