]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-59705: Fix solaris detection in test_threading.test_set_name() (#132012)
authorJakub Kulík <Kulikjak@gmail.com>
Wed, 2 Apr 2025 14:34:43 +0000 (16:34 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Apr 2025 14:34:43 +0000 (16:34 +0200)
Lib/test/test_threading.py

index 214e1ba0b53dd29dbb1b3a33aae7d27ddcd24d84..fa666608263e27edc993efc1418ee68d65ca628b 100644 (file)
@@ -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)