Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b96ef55

Browse files
committed
regrtest: log FS and locale encodings
1 parent f8cb8a1 commit b96ef55

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/test/libregrtest/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import datetime
22
import faulthandler
3+
import locale
34
import os
45
import platform
56
import random
@@ -392,7 +393,10 @@ def run_tests(self):
392393
"%s-endian" % sys.byteorder)
393394
print("== ", "hash algorithm:", sys.hash_info.algorithm,
394395
"64bit" if sys.maxsize > 2**32 else "32bit")
395-
print("== ", os.getcwd())
396+
print("== cwd:", os.getcwd())
397+
print("== encodings: locale=%s, FS=%s"
398+
% (locale.getpreferredencoding(False),
399+
sys.getfilesystemencoding()))
396400
print("Testing with flags:", sys.flags)
397401

398402
if self.ns.randomize:

0 commit comments

Comments
 (0)