Skip to content

Commit 5062cf0

Browse files
committed
gh-152798: Return None for lock on WASI to satisfy test_sys
1 parent 7a54d36 commit 5062cf0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Python/thread.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ PyThread_GetInfo(void)
335335
#ifdef HAVE_PTHREAD_STUBS
336336
value = Py_NewRef(Py_None);
337337
#else
338-
#ifdef MS_WINDOWS
338+
#if defined(MS_WINDOWS) || defined(__wasi__)
339339
value = Py_NewRef(Py_None);
340340
#else
341341
value = PyUnicode_FromString("semaphore");
@@ -365,7 +365,6 @@ PyThread_GetInfo(void)
365365
return threadinfo;
366366
}
367367

368-
369368
void
370369
_PyThread_FiniType(PyInterpreterState *interp)
371370
{

0 commit comments

Comments
 (0)