mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Align lzma and os exports for test_all expected failure (#7156)
This commit is contained in:
1 parent
15e371141d
commit
4f3d88ce4f
4 files changed
+4
-7
No files matched your search
Vendored
-1
@@ -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([
|
||||
|
||||
Vendored
-1
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user