Skip to content

Commit c49286d

Browse files
kulikjakseehwan80
authored andcommitted
pythongh-59705: Fix solaris detection in test_threading.test_set_name() (python#132012)
1 parent 7c27ed2 commit c49286d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_threading.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,7 @@ def test_set_name(self):
21452145
if os_helper.TESTFN_UNENCODABLE:
21462146
tests.append(os_helper.TESTFN_UNENCODABLE)
21472147

2148-
if sys.platform.startswith("solaris"):
2148+
if sys.platform.startswith("sunos"):
21492149
encoding = "utf-8"
21502150
else:
21512151
encoding = sys.getfilesystemencoding()
@@ -2161,7 +2161,7 @@ def work():
21612161
encoded = encoded.split(b'\0', 1)[0]
21622162
if truncate is not None:
21632163
encoded = encoded[:truncate]
2164-
if sys.platform.startswith("solaris"):
2164+
if sys.platform.startswith("sunos"):
21652165
expected = encoded.decode("utf-8", "surrogateescape")
21662166
else:
21672167
expected = os.fsdecode(encoded)

0 commit comments

Comments
 (0)