Skip to content

Commit 0093a19

Browse files
committed
Don't compile badsyntax_ files for freeze-stdlib
1 parent b2c3a62 commit 0093a19

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Lib/test/test_utf8source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_pep3120(self):
1515
)
1616

1717
# TODO: RUSTPYTHON
18-
@unittest.expectedFailure # "badsyntax_pep3120.py" may make the WASM CI fail
18+
@unittest.expectedFailure
1919
def test_badsyntax(self):
2020
try:
2121
import test.badsyntax_pep3120

derive/src/compile_bytecode.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,16 @@ impl CompilationSource {
183183
}
184184
}
185185
Err(e)
186-
})?;
186+
});
187+
188+
if code.is_err() && stem.starts_with("badsyntax_") {
189+
continue;
190+
}
187191

188192
code_map.insert(
189193
module_name,
190194
FrozenModule {
191-
code,
195+
code: code?,
192196
package: is_init,
193197
},
194198
);

0 commit comments

Comments
 (0)