Align lzma and os exports for test_all expected failure (#7156)

This commit is contained in:
Lee Dogeon authored and GitHub committed 2026-02-15 20:33:58 +09:00
1 parent 15e371141d
commit 4f3d88ce4f
4 files changed
+4 -7

No files matched your search

-1
View File
@@ -97,7 +97,6 @@ class AllTest(unittest.TestCase):
continue
yield path, modpath + modname
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_all(self):
# List of denied modules and packages
denylist = set([
-1
View File
@@ -1553,7 +1553,6 @@ class OpenTestCase(unittest.TestCase):
class MiscellaneousTestCase(unittest.TestCase):
@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: module 'lzma' has no attribute 'CHECK_ID_MAX'
def test_is_check_supported(self):
# CHECK_NONE and CHECK_CRC32 should always be supported,
# regardless of the options liblzma was compiled with.
+3 -1
View File
@@ -51,7 +51,9 @@ mod _lzma {
#[pyattr]
const FILTER_DELTA: i32 = 3;
#[pyattr]
const CHECK_UNKNOWN: i32 = 16;
const CHECK_ID_MAX: i32 = 15;
#[pyattr]
const CHECK_UNKNOWN: i32 = CHECK_ID_MAX + 1;
// the variant ids are hardcoded to be equivalent to the C enum values
enum Format {
+1 -4
View File
@@ -188,10 +188,7 @@ pub(super) mod _os {
pub(crate) const SYMLINK_DIR_FD: bool = cfg!(not(any(windows, target_os = "redox")));
#[pyattr]
use libc::{
O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY, SEEK_CUR, SEEK_END,
SEEK_SET,
};
use libc::{O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY};
#[pyattr]
pub(crate) const F_OK: u8 = 0;