Skip to content

Commit a485341

Browse files
committed
trashcan
1 parent 2965953 commit a485341

File tree

14 files changed

+77
-18
lines changed

14 files changed

+77
-18
lines changed

Lib/test/test_asyncio/test_ssl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,6 @@ async def test(ctx):
16491649
# SSLProtocol should be DECREF to 0
16501650
self.assertIsNone(ctx())
16511651

1652-
@unittest.expectedFailure # TODO: RUSTPYTHON; - gc.collect() doesn't release SSLContext properly
16531652
def test_shutdown_timeout_handler_leak(self):
16541653
loop = self.loop
16551654

Lib/test/test_descr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5117,7 +5117,6 @@ def __new__(cls):
51175117
cls.lst = [2**i for i in range(10000)]
51185118
X.descr
51195119

5120-
@unittest.expectedFailure # TODO: RUSTPYTHON
51215120
def test_remove_subclass(self):
51225121
# bpo-46417: when the last subclass of a type is deleted,
51235122
# remove_subclass() clears the internal dictionary of subclasses:

Lib/test/test_faulthandler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def test_sigsegv(self):
199199
3,
200200
'Segmentation fault')
201201

202-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Regex didn't match: '(?m)^Fatal Python error: Segmentation fault\n\n<Cannot show all threads while the GIL is disabled>\nStack\\ \\(most\\ recent\\ call\\ first\\):\n File "<string>", line 9 in __del__\nCurrent thread\'s C stack trace \\(most recent call first\\):\n( Binary file ".+"(, at .*(\\+|-)0x[0-9a-f]+)? \\[0x[0-9a-f]+\\])|(<.+>)' not found in 'exit'
203202
@skip_segfault_on_android
204203
def test_gc(self):
205204
# bpo-44466: Detect if the GC is running

Lib/test/test_functools.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,6 @@ def f():
21052105
return 1
21062106
self.assertEqual(f.cache_parameters(), {'maxsize': 1000, "typed": True})
21072107

2108-
@unittest.expectedFailure # TODO: RUSTPYTHON; GC behavior differs from CPython's refcounting
21092108
def test_lru_cache_weakrefable(self):
21102109
@self.module.lru_cache
21112110
def test_function(x):

Lib/test/test_inspect/test_inspect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2714,7 +2714,6 @@ def __getattribute__(self, attr):
27142714

27152715
self.assertFalse(test.called)
27162716

2717-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <class 'test.test_inspect.test_inspect.TestGetattrStatic.test_cache_does_not_cause_classes_to_persist.<locals>.Foo'> is not None
27182717
def test_cache_does_not_cause_classes_to_persist(self):
27192718
# regression test for gh-118013:
27202719
# check that the internal _shadowed_dict cache does not cause

Lib/test/test_io.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3813,7 +3813,6 @@ def __del__(self):
38133813
""".format(iomod=iomod, kwargs=kwargs)
38143814
return assert_python_ok("-c", code)
38153815

3816-
@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError during module teardown in __del__
38173816
def test_create_at_shutdown_without_encoding(self):
38183817
rc, out, err = self._check_create_at_shutdown()
38193818
if err:
@@ -3823,7 +3822,6 @@ def test_create_at_shutdown_without_encoding(self):
38233822
else:
38243823
self.assertEqual("ok", out.decode().strip())
38253824

3826-
@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError during module teardown in __del__
38273825
def test_create_at_shutdown_with_encoding(self):
38283826
rc, out, err = self._check_create_at_shutdown(encoding='utf-8',
38293827
errors='strict')
@@ -4812,13 +4810,11 @@ def run():
48124810
else:
48134811
self.assertFalse(err.strip('.!'))
48144812

4815-
@unittest.expectedFailure # TODO: RUSTPYTHON; without GC+GIL, finalize_modules clears __main__ globals while daemon threads are still running
48164813
@threading_helper.requires_working_threading()
48174814
@support.requires_resource('walltime')
48184815
def test_daemon_threads_shutdown_stdout_deadlock(self):
48194816
self.check_daemon_threads_shutdown_deadlock('stdout')
48204817

4821-
@unittest.expectedFailure # TODO: RUSTPYTHON; without GC+GIL, finalize_modules clears __main__ globals while daemon threads are still running
48224818
@threading_helper.requires_working_threading()
48234819
@support.requires_resource('walltime')
48244820
def test_daemon_threads_shutdown_stderr_deadlock(self):

Lib/test/test_logging.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5165,7 +5165,6 @@ def __init__(self, name='MyLogger', level=logging.NOTSET):
51655165
h.close()
51665166
logging.setLoggerClass(logging.Logger)
51675167

5168-
@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError during module teardown in __del__
51695168
def test_logging_at_shutdown(self):
51705169
# bpo-20037: Doing text I/O late at interpreter shutdown must not crash
51715170
code = textwrap.dedent("""
@@ -5185,7 +5184,6 @@ def __del__(self):
51855184
self.assertIn("exception in __del__", err)
51865185
self.assertIn("ValueError: some error", err)
51875186

5188-
@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError during module teardown in __del__
51895187
def test_logging_at_shutdown_open(self):
51905188
# bpo-26789: FileHandler keeps a reference to the builtin open()
51915189
# function to be able to open or reopen the file during Python

Lib/test/test_memoryio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@ def test_getbuffer_empty(self):
485485
buf2.release()
486486
memio.write(b'x')
487487

488-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <memory at 0xbb894d200> is not None
489488
def test_getbuffer_gc_collect(self):
490489
memio = self.ioclass(b"1234567890")
491490
buf = memio.getbuffer()

Lib/test/test_ordered_dict.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,6 @@ def test_dict_update(self):
669669
dict.update(od, [('spam', 1)])
670670
self.assertNotIn('NULL', repr(od))
671671

672-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <class 'test.test_ordered_dict.OrderedDictTests.test_reference_loop.<locals>.A'> is not None
673672
def test_reference_loop(self):
674673
# Issue 25935
675674
OrderedDict = self.OrderedDict

Lib/test/test_subprocess.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3557,7 +3557,6 @@ def test_communicate_repeated_call_after_stdout_close(self):
35573557
except subprocess.TimeoutExpired:
35583558
pass
35593559

3560-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: b'preexec_fn not supported at interpreter shutdown' not found in b"Exception ignored in: <function AtFinalization.__del__ at 0xa92f93840>\nAttributeError: 'NoneType' object has no attribute 'Popen'\n"
35613560
def test_preexec_at_exit(self):
35623561
code = f"""if 1:
35633562
import atexit

0 commit comments

Comments
 (0)