本文整理匯總了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)