From: Jakub KulĂ­k Date: Wed, 2 Apr 2025 14:34:43 +0000 (+0200) Subject: gh-59705: Fix solaris detection in test_threading.test_set_name() (#132012) X-Git-Tag: v3.14.0a7~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8085319eb20aca7c0f8507aece505461db4f578;p=thirdparty%2FPython%2Fcpython.git gh-59705: Fix solaris detection in test_threading.test_set_name() (#132012) --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 214e1ba0b53d..fa666608263e 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -2145,7 +2145,7 @@ class MiscTestCase(unittest.TestCase): 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 @@ class MiscTestCase(unittest.TestCase): 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)