Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update test.support
  • Loading branch information
shihai1991 committed May 16, 2020
commit 39cb677967231c72ae6de1bde9310c6719135014
4 changes: 4 additions & 0 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,10 @@ def check_syntax_warning(testcase, statement, errtext='', *, lineno=1, offset=No

def open_urlresource(url, *args, **kw):
import urllib.request, urllib.parse
try:
import gzip
except ImportError:
gzip = None

check = kw.pop('check', None)

Expand Down