We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ea645 commit 78a9ab9Copy full SHA for 78a9ab9
Lib/test/test_threading.py
@@ -2118,6 +2118,16 @@ def work():
2118
name = "CustomName"
2119
tests = [(name, name)]
2120
2121
+ # Test non-ASCII short name
2122
+ name = "namé€"
2123
+ try:
2124
+ os.fsencode(name)
2125
+ except UnicodeEncodeError:
2126
+ # name cannot be encoded to the filesystem encoding
2127
+ pass
2128
+ else:
2129
+ tests.append((name, name))
2130
+
2131
if sys.platform == "linux":
2132
# On Linux, set_name() truncates the name to 15 bytes.
2133
0 commit comments