def test_performance(self):
        with self.toggle_run_expected_output():
            start_time = time.time()
            try:
                self.assert_expected_output()
            except __HOLE__:
                pass
            end_time = time.time()
            total_time = end_time - start_time
            # This finishes in under a second on python 2.7
            expected_time = 3
            if sys.version_info[0] == 3:
                expected_time = 7  # Slower on python 3
            error_message = 'Total time: %s; Expected time: %d' % (
                total_time,
                expected_time,
            )
            assert total_time < expected_time, error_message
dataset/ETHPy150Open CenterForOpenScience/pydocx/tests/export/test_xml.py/LargeCellTestCase.test_performance