if not patterns:
func = None
+ # set_match_tests(None) behaves as set_match_tests(())
+ patterns = ()
elif all(map(_is_full_match_test, patterns)):
# Simple case: all patterns are full test identifier.
# The test.bisect utility only uses such full test identifiers.
self.assertTrue(support.match_test(test_access))
self.assertTrue(support.match_test(test_chdir))
+ # match all using None
+ support.set_match_tests(None)
+ self.assertTrue(support.match_test(test_access))
+ self.assertTrue(support.match_test(test_chdir))
+
# match the full test identifier
support.set_match_tests([test_access.id()])
self.assertTrue(support.match_test(test_access))