Skip to content

Commit ea4ed72

Browse files
committed
run_always_ignore_times = False
1 parent f389bd0 commit ea4ed72

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

scripts/py/func/checks/run_function_with_throttling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# INITIAL_WAIT_TIME = 1.0
1515
# MAX_WAIT_TIME = 1.0
1616

17-
run_always_ignore_times = True
18-
# run_always_ignore_times = False
17+
# run_always_ignore_times = True
18+
run_always_ignore_times = False
1919

2020
# # tags: time inite minute seconds
2121

scripts/py/func/checks/self_tester.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33
import concurrent.futures
44
import sys
5-
import concurrent.futures
5+
# import concurrent.futures
66
import os
77
from pathlib import Path
88

@@ -106,7 +106,7 @@ def case(input_text, expected, context='', lang='de-DE'):
106106

107107
# file: scripts/py/func/checks/self_tester.py:79
108108

109-
import concurrent.futures
109+
# import concurrent.futures
110110

111111

112112
def _execute_self_test_core_202601311804(logger, tmp_dir, lt_url, lang_code):
@@ -624,21 +624,26 @@ def _execute_self_test_core(logger, tmp_dir, lt_url, lang_code):
624624
import sys
625625
import os
626626
import time
627-
import traceback
627+
# import traceback
628628
from pathlib import Path
629629

630630

631631
# Dummy-Logger for Proses
632632
class SimpleNullLogger:
633-
def info(self, msg): pass
633+
def info(self, msg):
634+
pass
634635

635-
def error(self, msg, *args, **kwargs): pass
636+
def error(self, msg, *args, **kwargs):
637+
pass
636638

637-
def warning(self, msg): pass
639+
def warning(self, msg):
640+
pass
638641

639-
def debug(self, msg): pass
642+
def debug(self, msg):
643+
pass
640644

641-
def exception(self, msg, *args, **kwargs): pass
645+
def exception(self, msg, *args, **kwargs):
646+
pass
642647

643648
# if somebody is confused send him:
644649
# find . -name "*settings.py"  ✔
@@ -648,7 +653,7 @@ def run_single_test_process(index, test_data, lang_code, lt_url, test_base_dir_s
648653
import importlib.util
649654
import sys
650655
import os
651-
import time # Bleibt für andere Zwecke
656+
652657
from pathlib import Path
653658

654659
current_file = Path(__file__).resolve()
@@ -678,7 +683,7 @@ def run_single_test_process(index, test_data, lang_code, lt_url, test_base_dir_s
678683

679684
# 4. NANOSEKUNDEN + INDEX für absolute Eindeutigkeit
680685
# time.time_ns() liefert z.B. 1705678901234567890
681-
unique_id_ns = time.time_ns() + index
686+
# unique_id_ns = time.time_ns() + index
682687

683688
# Wir konvertieren es in einen Float-Sekunden-Wert für die Funktion,
684689
# aber mit extrem hoher Präzision.
@@ -708,7 +713,8 @@ def run_single_test_process(index, test_data, lang_code, lt_url, test_base_dir_s
708713
os.remove(result_file)
709714
try:
710715
worker_dir.rmdir()
711-
except:
716+
except Exception as e:
717+
print(f'717: {e}')
712718
pass
713719

714720
return actual == expected, raw_text, actual, expected, description

0 commit comments

Comments
 (0)