Removed the Requirement to Install Python and NodeJS (Now Bundled with Borealis)

This commit is contained in:
2025-04-24 00:42:19 -06:00
parent 785265d3e7
commit 9c68cdea84
7786 changed files with 2386458 additions and 217 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
import unittest
unittest.main('test.test_warnings')

View File

@ -0,0 +1,3 @@
import warnings
warnings.warn('module-level warning', DeprecationWarning, stacklevel=2)

View File

@ -0,0 +1,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,))

View 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)