diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-09 04:46:56 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-09 04:46:56 (GMT) |
commit | b96ef55d493aded2dea18b0208070bdfab4ceb73 (patch) | |
tree | 2adc4c2d4175cdb610c5d05b542a53aaec27aeaa /Lib/test | |
parent | f8cb8a16a344ab208fd46876c4b63604987347b8 (diff) | |
download | cpython-b96ef55d493aded2dea18b0208070bdfab4ceb73.zip cpython-b96ef55d493aded2dea18b0208070bdfab4ceb73.tar.gz cpython-b96ef55d493aded2dea18b0208070bdfab4ceb73.tar.bz2 |
regrtest: log FS and locale encodings
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/libregrtest/main.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py index dbbf72f..f0effc9 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: |