summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-07-22 00:19:57 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-07-22 00:19:57 (GMT)
commitdf4ff08be41e2013b41f575d0a0ed61e74d4c0ad (patch)
treeb266bb584ece9a93f729def6124c252d2d5c29f0 /Lib/test/support.py
parent3e7f60934653173ef12f8801ea618c8adddd262b (diff)
downloadcpython-df4ff08be41e2013b41f575d0a0ed61e74d4c0ad.zip
cpython-df4ff08be41e2013b41f575d0a0ed61e74d4c0ad.tar.gz
cpython-df4ff08be41e2013b41f575d0a0ed61e74d4c0ad.tar.bz2
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.
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index e11fbae..04964a1 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -455,7 +455,7 @@ def open_urlresource(url, *args, **kw):
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)