mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
rename os module's exit function to _exit as thats how it is defined in cpython (#4887)
This commit is contained in:
1 parent
6ce372cfb6
commit
f0db8329be
2 files changed
+3
-1
No files matched your search
@@ -6,6 +6,7 @@
|
||||
# randrange, and then Python hangs.
|
||||
|
||||
import _imp as imp
|
||||
import _multiprocessing # TODO: RUSTPYTHON
|
||||
import os
|
||||
import importlib
|
||||
import sys
|
||||
@@ -260,6 +261,7 @@ class ThreadedImportTests(unittest.TestCase):
|
||||
'partial', 'cfimport.py')
|
||||
script_helper.assert_python_ok(fn)
|
||||
|
||||
@unittest.skipUnless(hasattr(_multiprocessing, "SemLock"), "TODO: RUSTPYTHON, pool_in_threads.py needs _multiprocessing.SemLock")
|
||||
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
|
||||
def test_multiprocessing_pool_circular_import(self):
|
||||
# Regression test for bpo-41567
|
||||
|
||||
+1
-1
@@ -1167,7 +1167,7 @@ pub(super) mod _os {
|
||||
}
|
||||
|
||||
#[pyfunction]
|
||||
fn exit(code: i32) {
|
||||
fn _exit(code: i32) {
|
||||
std::process::exit(code)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user