]> granicus.if.org Git - python/commit
Fix test_linecache change.
authorRobert Collins <rbtcollins@hp.com>
Wed, 19 Aug 2015 22:48:46 +0000 (10:48 +1200)
committerRobert Collins <rbtcollins@hp.com>
Wed, 19 Aug 2015 22:48:46 +0000 (10:48 +1200)
commite4d35dc8b6fb3c071d85e2d8830566876288c180
treec313b3e57ef51885e238f3fed931e6dac8255eb7
parentdc7756599025ea28f917393e34bd0c922cc1166e
Fix test_linecache change.

In non-UTF8 locales open() will have the wrong encoding for the test
data. We need to open the file via tokenize, to get a detected
encoding instead.
Lib/test/test_linecache.py