From e8085319eb20aca7c0f8507aece505461db4f578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= Date: Wed, 2 Apr 2025 16:34:43 +0200 Subject: gh-59705: Fix solaris detection in test_threading.test_set_name() (#132012) --- Lib/test/test_threading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 214e1ba..fa66660 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) -- cgit v0.12