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)