blob: c22a4f6405c5b4ac9d86d226ee177a37af34b6e5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# helper to the helper for testing skip_file_prefixes.
import os
package_path = os.path.dirname(__file__)
def inner_api(message, *, stacklevel, warnings_module):
warnings_module.warn(
message, stacklevel=stacklevel,
skip_file_prefixes=(package_path,))
|