GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-59705: Fix solaris detection in test_threading.test_set_name() (#1… · python/cpython@e808531

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib/test
    • test_threading.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/test_threading.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_threading.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.