Skip to content

Commit a2c44a5

Browse files
Fix set_match_tests().
1 parent 93ecca0 commit a2c44a5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Lib/test/libregrtest/filter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_match_tests():
6262

6363

6464
def set_match_tests(patterns=None, match_labels=None):
65-
global _test_matchers, _test_patterns
65+
global _test_matchers, _test_patterns, _match_labels
6666

6767
if not patterns:
6868
_test_matchers = ()
@@ -77,6 +77,11 @@ def set_match_tests(patterns=None, match_labels=None):
7777
]
7878
_test_patterns = patterns
7979

80+
if not match_labels:
81+
_match_labels = ()
82+
else:
83+
_match_labels = tuple(match_labels)
84+
8085

8186
def _compile_match_function(patterns):
8287
patterns = list(patterns)

0 commit comments

Comments
 (0)