File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ class SysModuleTest(unittest.TestCase):
206206 def tearDown (self ):
207207 test .support .reap_children ()
208208
209+ @unittest .expectedFailure # TODO: RUSTPYTHON
209210 def test_exit (self ):
210211 # call with two arguments
211212 self .assertRaises (TypeError , sys .exit , 42 , 42 )
@@ -1179,7 +1180,6 @@ def test_getallocatedblocks(self):
11791180 c = sys .getallocatedblocks ()
11801181 self .assertIn (c , range (b - 50 , b + 50 ))
11811182
1182- @unittest .expectedFailure # TODO: RUSTPYTHON; AssertionError: False is not true
11831183 def test_is_gil_enabled (self ):
11841184 if support .Py_GIL_DISABLED :
11851185 self .assertIs (type (sys ._is_gil_enabled ()), bool )
@@ -1319,7 +1319,6 @@ def test_orig_argv(self):
13191319 self .assertEqual (proc .stdout .rstrip ().splitlines (), expected ,
13201320 proc )
13211321
1322- @unittest .expectedFailure # TODO: RUSTPYTHON; AttributeError: module 'sys' has no attribute 'stdlib_module_names'
13231322 def test_module_names (self ):
13241323 self .assertIsInstance (sys .stdlib_module_names , frozenset )
13251324 for name in sys .stdlib_module_names :
Original file line number Diff line number Diff line change @@ -600,20 +600,11 @@ mod sys {
600600 }
601601
602602 #[ pyfunction]
603- <<<<<<< HEAD
604603 const fn _is_gil_enabled ( ) -> bool {
605604 false // RustPython has no GIL (like free-threaded Python)
606605 }
607606
608607 #[ pyfunction]
609- ||||||| parent of 39 b62a349 ( Update `test_sys. py` from 3.13 . 11 )
610- =======
611- const fn _is_gil_enabled ( ) -> bool {
612- false // We don't implement GIL
613- }
614-
615- #[ pyfunction ]
616- >>>>>>> 39 b62a349 ( Update `test_sys. py` from 3 . 13 . 11 )
617608 fn exit ( code : OptionalArg < PyObjectRef > , vm : & VirtualMachine ) -> PyResult {
618609 let code = code. unwrap_or_none ( vm) ;
619610 Err ( vm. new_exception ( vm. ctx . exceptions . system_exit . to_owned ( ) , vec ! [ code] ) )
You can’t perform that action at this time.
0 commit comments