[PDNCF] Python 3.12 compatibility
[platform/framework/web/chromium-efl.git] / tools / PRESUBMIT.py
1 # Copyright 2022 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 PRESUBMIT_VERSION = '2.0.0'
6
7
8 def CheckPythonTests(input_api, output_api):
9   return input_api.RunTests(
10       input_api.canned_checks.GetUnitTestsInDirectory(
11           input_api,
12           output_api,
13           input_api.PresubmitLocalPath(),
14           files_to_check=[r'.+_(?:unit)?test\.py$']))