https://github.com/python/cpython/commit/e8085319eb20aca7c0f8507aece505461db4f578
commit: e8085319eb20aca7c0f8507aece505461db4f578
branch: main
author: Jakub KulĂk <[email protected]>
committer: vstinner <[email protected]>
date: 2025-04-02T16:34:43+02:00
summary:
gh-59705: Fix solaris detection in test_threading.test_set_name() (#132012)
files:
M Lib/test/test_threading.py
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 214e1ba0b53dd2..fa666608263e27 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -2145,7 +2145,7 @@ def test_set_name(self):
if os_helper.TESTFN_UNENCODABLE:
tests.append(os_helper.TESTFN_UNENCODABLE)
- if sys.platform.startswith("solaris"):
+ if sys.platform.startswith("sunos"):
encoding = "utf-8"
else:
encoding = sys.getfilesystemencoding()
@@ -2161,7 +2161,7 @@ def work():
encoded = encoded.split(b'\0', 1)[0]
if truncate is not None:
encoded = encoded[:truncate]
- if sys.platform.startswith("solaris"):
+ if sys.platform.startswith("sunos"):
expected = encoded.decode("utf-8", "surrogateescape")
else:
expected = os.fsdecode(encoded)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]