mirror of https://github.com/python/cpython.git
Add some debug output in verbose mode
This commit is contained in:
parent
f51d8d3a2e
commit
d7931095d5
|
@ -101,6 +101,10 @@ def test_run_code(self):
|
|||
|
||||
# Test handling of non-ascii data
|
||||
if sys.getfilesystemencoding() != 'ascii':
|
||||
if test.support.verbose:
|
||||
import locale
|
||||
print('locale encoding = %s, filesystem encoding = %s'
|
||||
% (locale.getpreferredencoding(), sys.getfilesystemencoding()))
|
||||
command = "assert(ord('\xe9') == 0xe9)"
|
||||
assert_python_ok('-c', command)
|
||||
|
||||
|
|
Loading…
Reference in New Issue