From 9dee7947096a69c506aaf6eea2982e176c7984bc Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Wed, 3 Apr 2024 13:51:03 -0400 Subject: [PATCH] remove timeout logic for now --- pytest.ini | 8 ++++++++ runner/__init__.py | 8 +------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pytest.ini b/pytest.ini index 9ae8221..a2e6602 100644 --- a/pytest.ini +++ b/pytest.ini @@ -9,3 +9,11 @@ markers = task: A concept exercise task. console_output_style = classic +log_cli = + true +log_level = + DEBUG +log_format = + %(asctime)s %(levelname)s %(message)s +log_date_format = + %Y-%m-%d %H:%M:%S diff --git a/runner/__init__.py b/runner/__init__.py index a335aad..8f9427d 100644 --- a/runner/__init__.py +++ b/runner/__init__.py @@ -214,13 +214,7 @@ def run(indir: Directory, outdir: Directory, max_score: int, timeout_duration: i # run the tests and report reporter = ResultsReporter() reporter.results.max_score = max_score - try: - @timeout_decorator.timeout(timeout_duration) - def run_tests(): - pytest.main(_sanitize_args(args or []) + [str(tf) for tf in test_files], plugins=[reporter]) - run_tests() - except TimeoutError: - reporter.results.error("Tests timed out after {} seconds".format(timeout_duration)) + pytest.main(_sanitize_args(args or []) + [str(tf) for tf in test_files], plugins=[reporter]) # dump the report out_file.write_text(reporter.results.as_json())