mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
This commit is contained in:
parent
604bba1f8f
commit
c7decc27d5
19 changed files with 58 additions and 46 deletions
|
@ -213,11 +213,11 @@ def build_files(file_defs, prefix=pathlib.Path()):
|
|||
class FileBuilder:
|
||||
def unicode_filename(self):
|
||||
try:
|
||||
import test.support
|
||||
from test.support import os_helper
|
||||
except ImportError:
|
||||
# outside CPython, hard-code a unicode snowman
|
||||
return '☃'
|
||||
return test.support.FS_NONASCII or \
|
||||
return os_helper.FS_NONASCII or \
|
||||
self.skip("File system does not support non-ascii.")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue