Skip to content

Commit

Permalink
Revert "test-failure-policy: Ignore window. prefix for ph_* test he…
Browse files Browse the repository at this point in the history
…lper functions"

This wasn't necessary after all, things on `window.` are available in
the global namespace. See the final version of
cockpit-project/cockpit#20833

This reverts commit b8aae7b.
  • Loading branch information
martinpitt committed Aug 11, 2024
1 parent 63113ff commit 2be6a26
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test-failure-policy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2be6a26

Please sign in to comment.