From: Victor Stinner Date: Fri, 9 Sep 2016 04:46:56 +0000 (-0700) Subject: regrtest: log FS and locale encodings X-Git-Tag: v3.6.0b1~223 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b96ef55d493aded2dea18b0208070bdfab4ceb73;p=thirdparty%2FPython%2Fcpython.git regrtest: log FS and locale encodings --- diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py index dbbf72f1b5a4..f0effc973c1b 100644 --- a/Lib/test/libregrtest/main.py +++ b/Lib/test/libregrtest/main.py @@ -1,5 +1,6 @@ import datetime import faulthandler +import locale import os import platform import random @@ -392,7 +393,10 @@ class Regrtest: "%s-endian" % sys.byteorder) print("== ", "hash algorithm:", sys.hash_info.algorithm, "64bit" if sys.maxsize > 2**32 else "32bit") - print("== ", os.getcwd()) + print("== cwd:", os.getcwd()) + print("== encodings: locale=%s, FS=%s" + % (locale.getpreferredencoding(False), + sys.getfilesystemencoding())) print("Testing with flags:", sys.flags) if self.ns.randomize: