Skip to content

Commit 50dec2f

Browse files
committed
fix: skip these tests on windows
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent d4f4615 commit 50dec2f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Lib/test/test_profile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ def test_output_file_when_changing_directory(self):
136136

137137
self.assertTrue(os.path.exists('out.pstats'))
138138

139+
@unittest.skipIf(sys.platform == 'win32',
140+
'Profiler with multiprocessing can not run on win32')
139141
def test_profile_multiprocessing(self):
140142
test_script = '''
141143
import multiprocessing

Lib/test/test_profiling/test_tracing_profiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ class Foo:
172172
f.close()
173173
assert_python_ok('-m', "cProfile", f.name)
174174

175+
@unittest.skipIf(sys.platform == 'win32',
176+
'Profiler with multiprocessing can not run on win32')
175177
def test_profile_multiprocessing(self):
176178
test_script = '''
177179
import multiprocessing

0 commit comments

Comments
 (0)