There was an error while loading. Please reload this page.
1 parent 6df421f commit e0acec1Copy full SHA for e0acec1
Lib/test/test_pkgutil.py
@@ -246,7 +246,11 @@ def test_name_resolution(self):
246
247
for uw in unicode_words:
248
d = os.path.join(self.dirname, uw)
249
- os.makedirs(d, exist_ok=True)
+ try:
250
+ os.makedirs(d, exist_ok=True)
251
+ except UnicodeEncodeError:
252
+ # When filesystem encoding cannot encode uw: skip this test
253
+ continue
254
# make an empty __init__.py file
255
f = os.path.join(d, '__init__.py')
256
with open(f, 'w') as f:
0 commit comments