Home
last modified time | relevance | path

Searched refs:urlopen (Results 1 - 25 of 39) sorted by relevance

12

/third_party/python/Lib/test/
H A Dtest_urllibnet.py33 f = urllib.request.urlopen(support.TEST_HTTP_URL)
38 """Tests urllib.request.urlopen using the network.
59 def urlopen(self, *args, **kwargs): member in urlopenNetworkTests
62 r = urllib.request.urlopen(*args, **kwargs)
70 with self.urlopen(self.url) as open_url:
74 "urlopen lacks the %s attribute" % attr)
79 with self.urlopen(self.url) as open_url:
87 with self.urlopen(self.url) as open_url:
96 with self.urlopen(self.url) as open_url:
148 urllib.request.urlopen("htt
[all...]
H A Dtest_urllib2_localnet.py312 self.assertTrue(urllib.request.urlopen(self.server_url))
320 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url)
445 """Tests urllib.request.urlopen using the network.
467 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen
469 f = urllib.request.urlopen(url, data, **kwargs)
517 data = self.urlopen("http://localhost:%s/" % handler.port)
532 data = self.urlopen("http://localhost:%s/" % handler.port)
540 self.urlopen("http://localhost:%s/weeble" % handler.port)
553 data = self.urlopen("http://localhost:%s/bizarre" % handler.port)
560 data = self.urlopen("htt
[all...]
H A Dtest_urllib.py43 def urlopen(url, data=None, proxies=None): function
44 """urlopen(url [, data]) -> open file-like object"""
94 # buffer to store data for verification in urlopen tests.
144 """Test urlopen() opening a temporary file.
162 self.returned_obj = urlopen("file:%s" % self.quoted_pathname)
170 # Make sure object returned by urlopen() has the specified methods
174 "object returned by urlopen() lacks %s attribute" %
233 self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname)
344 """Test urlopen() opening a fake http connection."""
349 fp = urlopen("htt
[all...]
H A Dtest_urllib2net.py34 _urlopen_with_retry = _wrap_with_retry_thrice(urllib.request.urlopen,
92 # self.fail("urlopen() should have failed with 401")
107 # urllib2.urlopen, "http://evil:thing@example.com")
161 self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file')
195 res = urllib.request.urlopen(req)
203 res = urllib.request.urlopen(req)
229 with urllib.request.urlopen(URL) as res:
232 self.fail("urlopen failed for site not sending \
237 req = urllib.request.urlopen(URL)
246 urlopen
[all...]
/third_party/skia/experimental/tools/
H A Dget_examples.py15 from urllib2 import urlopen namespace
19 from urllib.request import urlopen namespace
46 content = urlopen(url).read()
105 for line in urlopen('https://fiddle.skia.org/named/'):
/third_party/skia/bin/
H A Dfetch-gn17 from urllib2 import urlopen namespace
19 from urllib.request import urlopen namespace
31 f.write(urlopen(url).read())
H A Dfetch-sk20 from urllib2 import urlopen namespace
22 from urllib.request import urlopen namespace
86 f.write(urlopen(url).read())
H A Dfetch-clang-format38 f.write(urllib2.urlopen(url).read())
/third_party/vk-gl-cts/external/
H A Dfetch_sources.py118 from urllib2 import urlopen namespace
120 from urllib.request import urlopen namespace
125 result = urlopen(url, context=ssl_context)
127 result = urlopen(url)
211 from urllib2 import urlopen namespace
213 from urllib.request import urlopen namespace
218 result = urlopen(url, context=ssl_context)
220 result = urlopen(url)
/third_party/skia/tools/skqp/
H A Dfind_commit_with_best_gold_results.py57 def urlopen(url): function
59 return urllib2.urlopen(urllib2.Request(url, headers={'Cookie': cookie}))
69 testResults = json.load(urlopen(url))
H A Dcut_release.py22 def urlopen(url): function
24 return urllib2.urlopen(urllib2.Request(url, headers={'Cookie': cookie}))
53 f = urlopen('https://public-gold.skia.org/json/export?' + urllib.urlencode([
/third_party/vk-gl-cts/scripts/khr_util/
H A Dregistry_cache.py91 from urllib2 import urlopen namespace
93 from urllib.request import urlopen namespace
96 req = urlopen(makeSourceUrl(repository, revision, filename))
/third_party/python/Tools/scripts/
H A Dverify_ensurepip_wheels.py15 from urllib.request import urlopen namespace
59 raw_text = urlopen(f"https://pypi.org/pypi/{package_name}/json").read()
H A Dparse_html5_entities.py14 from urllib.request import urlopen namespace
21 with urlopen(url) as f:
H A Dcheckpip.py16 data = json.loads(urllib.request.urlopen(
/third_party/python/Lib/distutils/tests/
H A Dtest_upload.py73 self.old_open = upload_mod.urlopen
74 upload_mod.urlopen = self._urlopen
80 upload_mod.urlopen = self.old_open
208 with mock.patch('distutils.command.upload.urlopen',
/third_party/skia/infra/bots/assets/valgrind/
H A Dcreate.py21 from urllib.request import urlopen namespace
41 f.write(urlopen(DOWNLOAD_URL).read())
/third_party/skia/third_party/externals/brotli/scripts/dictionary/
H A Dstep-01-download-rfc.py8 response = urllib2.urlopen('https://tools.ietf.org/rfc/rfc7932.txt')
/third_party/skia/tools/
H A Dretrieve_from_googlesource.py29 with closing(urllib2.urlopen(base64_url)) as f:
H A Dcompare_codereview.py51 parser.feed(urllib2.urlopen(url).read())
172 parser.feed(urllib2.urlopen(url).read())
H A Djsondiff.py56 return urllib2.urlopen(filepath).read()
/third_party/python/Lib/distutils/command/
H A Dupload.py13 from urllib.request import urlopen, Request namespace
195 result = urlopen(request)
/third_party/skia/tools/android/
H A Dupload_to_android.py50 response = urllib2.urlopen('%s/changes/%s/detail?o=ALL_REVISIONS' % (
70 response = urllib2.urlopen(REPO_TOOL_URL, timeout=5)
/third_party/python/Tools/msi/
H A Dpurge.py82 with urlopen(Request(u, method='PURGE', headers={'Fastly-Soft-Purge': 1})) as r:
/third_party/python/Tools/ssl/
H A Dmultissltests.py32 from urllib.request import urlopen namespace
35 from urllib2 import urlopen, HTTPError namespace
256 req = urlopen(url)

Completed in 10 milliseconds

12