@@ -880,6 +880,8 @@ def test_shutdown_locks(self):
880
880
# Daemon threads must never add it to _shutdown_locks.
881
881
self .assertNotIn (tstate_lock , threading ._shutdown_locks )
882
882
883
+ # TODO: RUSTPYTHON
884
+ @unittest .expectedFailure
883
885
def test_locals_at_exit (self ):
884
886
# bpo-19466: thread locals must not be deleted before destructors
885
887
# are called
@@ -1599,6 +1601,11 @@ def test_release_save_unacquired(self):
1599
1601
class EventTests (lock_tests .EventTests ):
1600
1602
eventtype = staticmethod (threading .Event )
1601
1603
1604
+ # TODO: RUSTPYTHON
1605
+ @unittest .expectedFailure
1606
+ def test_reset_internal_locks (): # TODO: RUSTPYTHON; remove this when done
1607
+ super ().test_reset_internal_locks ()
1608
+
1602
1609
class ConditionAsRLockTests (lock_tests .RLockTests ):
1603
1610
# Condition uses an RLock by default and exports its API.
1604
1611
locktype = staticmethod (threading .Condition )
@@ -1657,6 +1664,8 @@ def check_interrupt_main_noerror(self, signum):
1657
1664
# Restore original handler
1658
1665
signal .signal (signum , handler )
1659
1666
1667
+ # TODO: RUSTPYTHON
1668
+ @unittest .expectedFailure
1660
1669
def test_interrupt_main_subthread (self ):
1661
1670
# Calling start_new_thread with a function that executes interrupt_main
1662
1671
# should raise KeyboardInterrupt upon completion.
@@ -1715,6 +1724,8 @@ def worker(started, cont, interrupted):
1715
1724
1716
1725
class AtexitTests (unittest .TestCase ):
1717
1726
1727
+ # TODO: RUSTPYTHON
1728
+ @unittest .expectedFailure
1718
1729
def test_atexit_output (self ):
1719
1730
rc , out , err = assert_python_ok ("-c" , """if True:
1720
1731
import threading
@@ -1728,6 +1739,8 @@ def run_last():
1728
1739
self .assertFalse (err )
1729
1740
self .assertEqual (out .strip (), b'parrot' )
1730
1741
1742
+ # TODO: RUSTPYTHON
1743
+ @unittest .expectedFailure
1731
1744
def test_atexit_called_once (self ):
1732
1745
rc , out , err = assert_python_ok ("-c" , """if True:
1733
1746
import threading
@@ -1743,6 +1756,8 @@ def test_atexit_called_once(self):
1743
1756
1744
1757
self .assertFalse (err )
1745
1758
1759
+ # TODO: RUSTPYTHON
1760
+ @unittest .expectedFailure
1746
1761
def test_atexit_after_shutdown (self ):
1747
1762
# The only way to do this is by registering an atexit within
1748
1763
# an atexit, which is intended to raise an exception.
0 commit comments