Skip to content

Commit 3a8daf1

Browse files
committed
Fix thread tests a bit
1 parent 846aa96 commit 3a8daf1

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Lib/test/support/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
if __name__ != 'test.support':
44
raise ImportError('support must be imported from the test package')
55

6-
# import asyncio.events
6+
import asyncio.events
77
import collections.abc
88
import contextlib
99
import errno
10-
# import faulthandler
10+
import faulthandler
1111
import fnmatch
1212
import functools
1313
# import gc
@@ -16,7 +16,7 @@
1616
import importlib
1717
import importlib.util
1818
import locale
19-
# import logging.handlers
19+
import logging.handlers
2020
# import nntplib
2121
import os
2222
import platform
@@ -28,13 +28,13 @@
2828
import subprocess
2929
import sys
3030
import sysconfig
31-
# import tempfile
31+
import tempfile
3232
import _thread
33-
# import threading
33+
import threading
3434
import time
3535
import types
3636
import unittest
37-
# import urllib.error
37+
import urllib.error
3838
import warnings
3939

4040
from .testresult import get_test_runner

Lib/test/test_thread.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def test_nt_and_posix_stack_size(self):
104104

105105
thread.stack_size(0)
106106

107+
@unittest.skip("TODO: RUSTPYTHON, weakref destructors")
107108
def test__count(self):
108109
# Test the _count() function.
109110
orig = thread._count()
@@ -133,6 +134,7 @@ def task():
133134
time.sleep(POLL_SLEEP)
134135
self.assertEqual(thread._count(), orig)
135136

137+
@unittest.skip("TODO: RUSTPYTHON, sys.unraisablehook")
136138
def test_unraisable_exception(self):
137139
def task():
138140
started.release()

0 commit comments

Comments
 (0)