def setUpClass(cls):
# In Python 3 Click makes a call to locale to determine how the
# terminal wants to handle unicode. Because we mock Popen to avoid
# calling the real verifier, we need to get the actual result of
# locale to provide it to Click during the test run.
if os.name == 'nt':
cls.locale = '' # pragma: no cover
else:
cls.locale = Popen(
['locale', '-a'], stdout=PIPE, stderr=PIPE).communicate()[0]
评论列表
文章目录