Skip to content

Commit 42c3d22

Browse files
committed
Align lzma and os exports for test_all expected failure
1 parent 563abea commit 42c3d22

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

Lib/test/test___all__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def walk_modules(self, basedir, modpath):
9797
continue
9898
yield path, modpath + modname
9999

100-
@unittest.expectedFailure # TODO: RUSTPYTHON
101100
def test_all(self):
102101
# List of denied modules and packages
103102
denylist = set([

crates/stdlib/src/lzma.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ mod _lzma {
5151
#[pyattr]
5252
const FILTER_DELTA: i32 = 3;
5353
#[pyattr]
54-
const CHECK_UNKNOWN: i32 = 16;
54+
const CHECK_ID_MAX: i32 = 15;
55+
#[pyattr]
56+
const CHECK_UNKNOWN: i32 = CHECK_ID_MAX + 1;
5557

5658
// the variant ids are hardcoded to be equivalent to the C enum values
5759
enum Format {

crates/vm/src/stdlib/os.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,7 @@ pub(super) mod _os {
188188
pub(crate) const SYMLINK_DIR_FD: bool = cfg!(not(any(windows, target_os = "redox")));
189189

190190
#[pyattr]
191-
use libc::{
192-
O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY, SEEK_CUR, SEEK_END,
193-
SEEK_SET,
194-
};
191+
use libc::{O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY};
195192

196193
#[pyattr]
197194
pub(crate) const F_OK: u8 = 0;

0 commit comments

Comments
 (0)