mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
* Add Lib/test/archiver_tests.py @ 3.13.5 Needed for updated zipfile tests. * Update zipfile to 3.13.5 Notes: - I have to skip some brand new tests due to shift_jis encoding not being supported - `test_write_filtered_python_package` marked as `expectedFailure` with "AttributeError: module 'os' has no attribute 'supports_effective_ids'" - I didn't want to do a partial or full update to os module in this PR --------- Co-authored-by: Jack O'Connor <jack@jackoconnor.dev>
10 lines
219 B
Python
Vendored
10 lines
219 B
Python
Vendored
import importlib
|
|
import unittest
|
|
|
|
|
|
def import_or_skip(name):
|
|
try:
|
|
return importlib.import_module(name)
|
|
except ImportError: # pragma: no cover
|
|
raise unittest.SkipTest(f'Unable to import {name}')
|