本文整理汇总了Python中test.test_support.TESTFN_UNENCODABLE属性的典型用法代码示例。如果您正苦于以下问题:Python test_support.TESTFN_UNENCODABLE属性的具体用法?Python test_support.TESTFN_UNENCODABLE怎么用?Python test_support.TESTFN_UNENCODABLE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类test.test_support
的用法示例。
在下文中一共展示了test_support.TESTFN_UNENCODABLE属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_single_files
# 需要导入模块: from test import test_support [as 别名]
# 或者: from test.test_support import TESTFN_UNENCODABLE [as 别名]
def test_single_files(self):
self._test_single(TESTFN_ENCODED)
self._test_single(TESTFN_UNICODE)
if TESTFN_UNENCODABLE is not None:
self._test_single(TESTFN_UNENCODABLE)
示例2: test_directories
# 需要导入模块: from test import test_support [as 别名]
# 或者: from test.test_support import TESTFN_UNENCODABLE [as 别名]
def test_directories(self):
# For all 'equivalent' combinations:
# Make dir with encoded, chdir with unicode, checkdir with encoded
# (or unicode/encoded/unicode, etc
ext = ".dir"
self._do_directory(TESTFN_ENCODED+ext, TESTFN_ENCODED+ext, True)
self._do_directory(TESTFN_ENCODED+ext, TESTFN_UNICODE+ext, True)
self._do_directory(TESTFN_UNICODE+ext, TESTFN_ENCODED+ext, False)
self._do_directory(TESTFN_UNICODE+ext, TESTFN_UNICODE+ext, False)
# Our directory name that can't use a non-unicode name.
if TESTFN_UNENCODABLE is not None:
self._do_directory(TESTFN_UNENCODABLE+ext,
TESTFN_UNENCODABLE+ext,
False)