Todo: 集成多平台 解决因SaiNiu线程抢占资源问题 本地提交测试环境打包 和 正式打包脚本与正式环境打包bat 提交Python32环境包 改进多日志文件生成情况修改打包日志细节

This commit is contained in:
2025-09-18 15:52:03 +08:00
parent 8b9fc925fa
commit 7cfc0c22b7
7608 changed files with 2424791 additions and 25 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)