[Python-checkins] r74153 - python/branches/py3k/Lib/test/support.py
alexandre.vassalotti
python-checkins at python.org
Wed Jul 22 02:19:57 CEST 2009
Author: alexandre.vassalotti
Date: Wed Jul 22 02:19:57 2009
New Revision: 74153
Log:
Fix open_urlresource() to pass its arguments to open() when the resource is cached.
This fixes the failure of test_normalization on the Windows buildbots,
where the Normalization.txt file was read as a MBCS text file, instead
as a UTF-8 one.
Modified:
python/branches/py3k/Lib/test/support.py
Modified: python/branches/py3k/Lib/test/support.py
==============================================================================
--- python/branches/py3k/Lib/test/support.py (original)
+++ python/branches/py3k/Lib/test/support.py Wed Jul 22 02:19:57 2009
@@ -455,7 +455,7 @@
fn = os.path.join(os.path.dirname(__file__), "data", filename)
if os.path.exists(fn):
- return open(fn)
+ return open(fn, *args, **kw)
print('\tfetching %s ...' % url, file=get_original_stdout())
fn, _ = urllib.request.urlretrieve(url, fn)
More information about the Python-checkins
mailing list