def setUp(self):
        try:
            from pikos.cymonitors.function_monitor import FunctionMonitor
        except __HOLE__:
            self.skipTest('Cython FunctionMonitor is not available')
        self.maxDiff = None
        self.stream = StringIO.StringIO()
        self.helper = MonitoringHelper()
        self.filename = self.helper.filename
        # we only care about the lines that are in this file and we filter
        # the others.
        self.recorder = TextStreamRecorder(
            text_stream=self.stream,
            filter_=OnValue('filename', self.filename))
        self.monitor = FunctionMonitor(self.recorder)
        self.helper.monitor = self.monitor
dataset/ETHPy150Open enthought/pikos/pikos/tests/test_cfunction_monitor.py/TestCFunctionMonitor.setUp