shuqianpinggu/huaxi/Lib/site-packages/importlib_resources/tests/compat/py39.py

14 lines
441 B
Python
Raw Permalink Normal View History

2025-06-17 17:46:44 +08:00
"""
Backward-compatability shims to support Python 3.9 and earlier.
"""
from jaraco.test.cpython import from_test_support, try_import
import_helper = try_import('import_helper') or from_test_support(
'modules_setup', 'modules_cleanup', 'DirsOnSysPath'
)
os_helper = try_import('os_helper') or from_test_support('temp_dir')
warnings_helper = try_import('warnings_helper') or from_test_support(
'ignore_warnings', 'check_warnings'
)