Skip to content

Commit 61edb4c

Browse files
committed
Skip test on WASI
1 parent aceff9b commit 61edb4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_tracemalloc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
from test.support.script_helper import (assert_python_ok, assert_python_failure,
88
interpreter_requires_environment)
99
from test import support
10-
from test.support import os_helper
1110
from test.support import force_not_colorized
11+
from test.support import os_helper
12+
from test.support import threading_helper
1213

1314
try:
1415
import _testcapi
@@ -952,7 +953,6 @@ def check_env_var_invalid(self, nframe):
952953
return
953954
self.fail(f"unexpected output: {stderr!a}")
954955

955-
956956
def test_env_var_invalid(self):
957957
for nframe in INVALID_NFRAME:
958958
with self.subTest(nframe=nframe):
@@ -1102,6 +1102,7 @@ def test_stop_untrack(self):
11021102
self.untrack()
11031103

11041104
@unittest.skipIf(_testcapi is None, 'need _testcapi')
1105+
@threading_helper.requires_working_threading()
11051106
def test_tracemalloc_track_race(self):
11061107
# gh-128679: Test fix for tracemalloc.stop() race condition
11071108
_testcapi.tracemalloc_track_race()

0 commit comments

Comments
 (0)