8000 mark all rustpython fails on test_logging.py · RustPython/RustPython@b512e2b · GitHub
[go: up one dir, main page]

Skip to content

Commit b512e2b

Browse files
committed
mark all rustpython fail 10000 s on test_logging.py
1 parent dba4a18 commit b512e2b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Lib/test/test_logging.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,8 @@ class SMTPHandlerTest(BaseTest):
11311131
# bpo-14314, bpo-19665, bpo-34092: don't wait forever
11321132
TIMEOUT = support.LONG_TIMEOUT
11331133

1134+
# TODO: RUSTPYTHON
1135+
@unittest.skip(reason="Hangs RustPython")
11341136
def test_basic(self):
11351137
sockmap = {}
11361138
server = TestSMTPServer((socket_helper.HOST, 0), self.process_message, 0.001,
@@ -4025,6 +4027,8 @@ def _mpinit_issue121723(qspec, message_to_log):
40254027
# log a message (this creates a record put in the queue)
40264028
logging.getLogger().info(message_to_log)
40274029

4030+
# TODO: RustPython
4031+
@unittest.expectedFailure
40284032
@support.requires_subprocess()
40294033
def test_multiprocessing_queues(self):
40304034
# See gh-119819
@@ -4083,6 +4087,8 @@ def test_90195(self):
40834087
# Logger should be enabled, since explicitly mentioned
40844088
self.assertFalse(logger.disabled)
40854089

4090+
# TODO: RustPython
4091+
@unittest.expectedFailure
40864092
def test_111615(self):
40874093
# See gh-111615
40884094
import_helper.import_module('_multiprocessing') # see gh-113692
@@ -4530,6 +4536,8 @@ def test_dollars(self):
45304536
f = logging.Formatter('${asctime}--', style='$')
45314537
self.assertTrue(f.usesTime())
45324538

4539+
# TODO: RustPython
4540+
@unittest.expectedFailure
45334541
def test_format_validate(self):
45344542
# Check correct formatting
45354543
# Percentage style
@@ -4703,6 +4711,8 @@ def test_defaults_parameter(self):
47034711
def test_invalid_style(self):
47044712
self.assertRaises(ValueError, logging.Formatter, None, None, 'x')
47054713

4714+
# TODO: RustPython
4715+
@unittest.expectedFailure
47064716
def test_time(self):
47074717
r = self.get_record()
47084718
dt = datetime.datetime(1993, 4, 21, 8, 3, 0, 0, utc)
@@ -4717,6 +4727,8 @@ def test_time(self):
47174727
f.format(r)
47184728
self.assertEqual(r.asctime, '1993-04-21 08:03:00,123')
47194729

4730+
# TODO: RustPython
4731+
@unittest.expectedFailure
47204732
def test_default_msec_format_none(self):
47214733
class NoMsecFormatter(logging.Formatter):
47224734
default_msec_format = None
@@ -5047,6 +5059,8 @@ def __init__(self, name='MyLogger', level=logging.NOTSET):
50475059
h.close()
50485060
logging.setLoggerClass(logging.Logger)
50495061

5062+
# TODO: RustPython
5063+
@unittest.expectedFailure
50505064
def test_logging_at_shutdown(self):
50515065
# bpo-20037: Doing text I/O late at interpreter shutdown must not crash
50525066
code = textwrap.dedent("""
@@ -5066,6 +5080,8 @@ def __del__(self):
50665080
self.assertIn("exception in __del__", err)
50675081
self.assertIn("ValueError: some error", err)
50685082

5083+
# TODO: RustPython
5084+
@unittest.expectedFailure
50695085
def test_logging_at_shutdown_open(self):
50705086
# bpo-26789: FileHandler keeps a reference to the builtin open()
50715087
# function to be able to open or reopen the file during Python
@@ -5507,6 +5523,8 @@ def test_encoding_errors_default(self):
55075523
self.assertEqual(data, r'\U0001f602: \u2603\ufe0f: The \xd8resund '
55085524
r'Bridge joins Copenhagen to Malm\xf6')
55095525

5526+
# TODO: RustPython
5527+
@unittest.expectedFailure
55105528
def test_encoding_errors_none(self):
55115529
# Specifying None should behave as 'strict'
55125530
try:
@@ -6241,6 +6259,8 @@ def rotator(source, dest):
62416259
rh.close()
62426260

62436261
class TimedRotatingFileHandlerTest(BaseFileTest):
6262+
# TODO: RustPython
6263+
@unittest.expectedFailure
62446264
@unittest.skipIf(support.is_wasi, "WASI does not have /dev/null.")
62456265
def test_should_not_rollover(self):
62466266
# See bpo-45401. Should only ever rollover regular files
@@ -6294,6 +6314,8 @@ def test_rollover(self):
62946314
print(tf.read())
62956315
self.assertTrue(found, msg=msg)
62966316

6317+
# TODO: RustPython
6318+
@unittest.expectedFailure
62976319
def test_rollover_at_midnight(self, weekly=False):
62986320
os_helper.unlink(self.fn)
62996321
now = datetime.datetime.now()
@@ -6337,6 +6359,8 @@ def test_rollover_at_midnight(self, weekly=False):
63376359
for i, line in enumerate(f):
63386360
self.assertIn(f'testing1 {i}', line)
63396361

6362+
# TODO: RustPython
6363+
@unittest.expectedFailure
63406364
def test_rollover_at_weekday(self):
63416365
self.test_rollover_at_midnight(weekly=True)
63426366

0 commit comments

Comments
 (0)
0