Skip to content

Commit 4289e7e

Browse files
committed
update comment
1 parent af921d5 commit 4289e7e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

trio/tests/test_threads.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,9 @@ def _get_thread_name(ident: Optional[int] = None) -> Optional[str]:
207207
libpthread = ctypes.CDLL(libpthread_path)
208208

209209
pthread_getname_np = getattr(libpthread, "pthread_getname_np", None)
210-
# this should never fail afaik, but if so just switch the below lines
210+
211+
# this should never fail on any platforms afaik
211212
assert pthread_getname_np
212-
# if not pthread_getname_np: # pragma: no cover
213-
# print(f"no pthread_getname_np on {sys.platform})")
214-
# return None
215213

216214
# thankfully getname signature doesn't differ between platforms
217215
pthread_getname_np.argtypes = [

0 commit comments

Comments
 (0)