diff options
| author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-22 00:19:57 +0000 |
|---|---|---|
| committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-22 00:19:57 +0000 |
| commit | df4ff08be41e2013b41f575d0a0ed61e74d4c0ad (patch) | |
| tree | b266bb584ece9a93f729def6124c252d2d5c29f0 | |
| parent | 3e7f60934653173ef12f8801ea618c8adddd262b (diff) | |
| download | cpython-git-df4ff08be41e2013b41f575d0a0ed61e74d4c0ad.tar.gz | |
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.
| -rw-r--r-- | Lib/test/support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index e11fbaed67..04964a1095 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) |
