You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
283 B
10 lines
283 B
# 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,))
|
|
|