Removed the Requirement to Install Python and NodeJS (Now Bundled with Borealis)
This commit is contained in:
15
Dependencies/Python/Lib/test/test_warnings/data/stacklevel.py
vendored
Normal file
15
Dependencies/Python/Lib/test/test_warnings/data/stacklevel.py
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
# Helper module for testing stacklevel and skip_file_prefixes arguments
|
||||
# of warnings.warn()
|
||||
|
||||
import warnings
|
||||
from test.test_warnings.data import package_helper
|
||||
|
||||
def outer(message, stacklevel=1):
|
||||
inner(message, stacklevel)
|
||||
|
||||
def inner(message, stacklevel=1):
|
||||
warnings.warn(message, stacklevel=stacklevel)
|
||||
|
||||
def package(message, *, stacklevel):
|
||||
package_helper.inner_api(message, stacklevel=stacklevel,
|
||||
warnings_module=warnings)
|
Reference in New Issue
Block a user