summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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)