@@ -1131,6 +1131,8 @@ class SMTPHandlerTest(BaseTest):
1131
1131
# bpo-14314, bpo-19665, bpo-34092: don't wait forever
1132
1132
TIMEOUT = support .LONG_TIMEOUT
1133
1133
1134
+ # TODO: RUSTPYTHON
1135
+ @unittest .skip (reason = "Hangs RustPython" )
1134
1136
def test_basic (self ):
1135
1137
sockmap = {}
1136
1138
server = TestSMTPServer ((socket_helper .HOST , 0 ), self .process_message , 0.001 ,
@@ -4025,6 +4027,8 @@ def _mpinit_issue121723(qspec, message_to_log):
4025
4027
# log a message (this creates a record put in the queue)
4026
4028
logging .getLogger ().info (message_to_log )
4027
4029
4030
+ # TODO: RustPython
4031
+ @unittest .expectedFailure
4028
4032
@support .requires_subprocess ()
4029
4033
def test_multiprocessing_queues (self ):
4030
4034
# See gh-119819
@@ -4083,6 +4087,8 @@ def test_90195(self):
4083
4087
# Logger should be enabled, since explicitly mentioned
4084
4088
self .assertFalse (logger .disabled )
4085
4089
4090
+ # TODO: RustPython
4091
+ @unittest .expectedFailure
4086
4092
def test_111615 (self ):
4087
4093
# See gh-111615
4088
4094
import_helper .import_module ('_multiprocessing' ) # see gh-113692
@@ -4530,6 +4536,8 @@ def test_dollars(self):
4530
4536
f = logging .Formatter ('${asctime}--' , style = '$' )
4531
4537
self .assertTrue (f .usesTime ())
4532
4538
4539
+ # TODO: RustPython
4540
+ @unittest .expectedFailure
4533
4541
def test_format_validate (self ):
4534
4542
# Check correct formatting
4535
4543
# Percentage style
@@ -4703,6 +4711,8 @@ def test_defaults_parameter(self):
4703
4711
def test_invalid_style (self ):
4704
4712
self .assertRaises (ValueError , logging .Formatter , None , None , 'x' )
4705
4713
4714
+ # TODO: RustPython
4715
+ @unittest .expectedFailure
4706
4716
def test_time (self ):
4707
4717
r = self .get_record ()
4708
4718
dt = datetime .datetime (1993 , 4 , 21 , 8 , 3 , 0 , 0 , utc )
@@ -4717,6 +4727,8 @@ def test_time(self):
4717
4727
f .format (r )
4718
4728
self .assertEqual (r .asctime , '1993-04-21 08:03:00,123' )
4719
4729
4730
+ # TODO: RustPython
4731
+ @unittest .expectedFailure
4720
4732
def test_default_msec_format_none (self ):
4721
4733
class NoMsecFormatter (logging .Formatter ):
4722
4734
default_msec_format = None
@@ -5047,6 +5059,8 @@ def __init__(self, name='MyLogger', level=logging.NOTSET):
5047
5059
h .close ()
5048
5060
logging .setLoggerClass (logging .Logger )
5049
5061
5062
+ # TODO: RustPython
5063
+ @unittest .expectedFailure
5050
5064
def test_logging_at_shutdown (self ):
5051
5065
# bpo-20037: Doing text I/O late at interpreter shutdown must not crash
5052
5066
code = textwrap .dedent ("""
@@ -5066,6 +5080,8 @@ def __del__(self):
5066
5080
self .assertIn ("exception in __del__" , err )
5067
5081
self .assertIn ("ValueError: some error" , err )
5068
5082
5083
+ # TODO: RustPython
5084
+ @unittest .expectedFailure
5069
5085
def test_logging_at_shutdown_open (self ):
5070
5086
# bpo-26789: FileHandler keeps a reference to the builtin open()
5071
5087
# function to be able to open or reopen the file during Python
@@ -5507,6 +5523,8 @@ def test_encoding_errors_default(self):
5507
5523
self .assertEqual (data , r'\U0001f602: \u2603\ufe0f: The \xd8resund '
5508
5524
r'Bridge joins Copenhagen to Malm\xf6' )
5509
5525
5526
+ # TODO: RustPython
5527
+ @unittest .expectedFailure
5510
5528
def test_encoding_errors_none (self ):
5511
5529
# Specifying None should behave as 'strict'
5512
5530
try :
@@ -6241,6 +6259,8 @@ def rotator(source, dest):
6241
6259
rh .close ()
6242
6260
6243
6261
class TimedRotatingFileHandlerTest (BaseFileTest ):
6262
+ # TODO: RustPython
6263
+ @unittest .expectedFailure
6244
6264
@unittest .skipIf (support .is_wasi , "WASI does not have /dev/null." )
6245
6265
def test_should_not_rollover (self ):
6246
6266
# See bpo-45401. Should only ever rollover regular files
@@ -6294,6 +6314,8 @@ def test_rollover(self):
6294
6314
print (tf .read ())
6295
6315
self .assertTrue (found , msg = msg )
6296
6316
6317
+ # TODO: RustPython
6318
+ @unittest .expectedFailure
6297
6319
def test_rollover_at_midnight (self , weekly = False ):
6298
6320
os_helper .unlink (self .fn )
6299
6321
now = datetime .datetime .now ()
@@ -6337,6 +6359,8 @@ def test_rollover_at_midnight(self, weekly=False):
6337
6359
for i , line in enumerate (f ):
6338
6360
self .assertIn (f'testing1 { i } ' , line )
6339
6361
6362
+ # TODO: RustPython
6363
+ @unittest .expectedFailure
6340
6364
def test_rollover_at_weekday (self ):
6341
6365
self .test_rollover_at_midnight (weekly = True )
6342
6366
0 commit comments