Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix set_match_tests().
  • Loading branch information
serhiy-storchaka committed Jun 28, 2025
commit a2c44a54123e8e5d0ffcf4607029d74ba78e25ea
7 changes: 6 additions & 1 deletion Lib/test/libregrtest/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_match_tests():


def set_match_tests(patterns=None, match_labels=None):
global _test_matchers, _test_patterns
global _test_matchers, _test_patterns, _match_labels

if not patterns:
_test_matchers = ()
Expand All @@ -77,6 +77,11 @@ def set_match_tests(patterns=None, match_labels=None):
]
_test_patterns = patterns

if not match_labels:
_match_labels = ()
else:
_match_labels = tuple(match_labels)


def _compile_match_function(patterns):
patterns = list(patterns)
Expand Down