Skip to content

Commit 6962116

Browse files
committed
Add tests
1 parent 46721bb commit 6962116

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_threading.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,6 +2152,11 @@ def create_test(name):
21522152
# Test long non-ASCII name (truncated)
21532153
create_test("x" * (limit - 1) + "é€"),
21542154
]
2155+
if os_helper.FS_NONASCII:
2156+
tests.append(create_test(f"nonascii:{os_helper.FS_NONASCII}"))
2157+
if os_helper.TESTFN_UNENCODABLE:
2158+
tests.append(create_test(os_helper.TESTFN_UNENCODABLE))
2159+
21552160
for name, expected in tests:
21562161
with self.subTest(name=name, expected=expected):
21572162
work_name = None

0 commit comments

Comments
 (0)