From 2be6a26b92db5bcc45287c4abf9997b4e19d837b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 11 Aug 2024 14:57:45 +0200 Subject: [PATCH] Revert "test-failure-policy: Ignore `window.` prefix for ph_* test helper functions" This wasn't necessary after all, things on `window.` are available in the global namespace. See the final version of https://github.com/cockpit-project/cockpit/pull/20833 This reverts commit b8aae7b65eedc0887a5990b78ded47a944c78d65. --- test-failure-policy | 3 --- 1 file changed, 3 deletions(-) diff --git a/test-failure-policy b/test-failure-policy index 1b1c953d6c..9abd2b3ebe 100755 --- a/test-failure-policy +++ b/test-failure-policy @@ -146,9 +146,6 @@ def normalize_traceback(trace: str) -> str: trace = re.sub(r'audit\([0-9.:]+\)', 'audit(0)', trace) trace = re.sub(r'\b(pid|ino)=[0-9]+ ', r'\1=0 ', trace) - # testlib API change: move ph_*() test-functions to window object - trace = re.sub(r'\bwindow.ph_', r'ph_', trace) - # in Python 3, testlib.Error is shown with namespace trace = re.sub(r'testlib\.Error', 'Error', trace) return trace