]> granicus.if.org Git - python/commit
regrtest.py: call replace_stdout() before the first call to print()
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 19 May 2010 17:11:19 +0000 (17:11 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 19 May 2010 17:11:19 +0000 (17:11 +0000)
commit1802d3f3888b374b8d44470156a98081697a6280
tree1451c5cdf6056911ea9d3ff491f2c1f8f9f5429c
parent2ca03c1f7f476445019e67d6b44189b85259ef17
regrtest.py: call replace_stdout() before the first call to print()

print("==  ", os.getcwd()) fails if the current working directory is not ASCII
whereas sys.stdout encoding is ASCII.
Lib/test/regrtest.py